1
0
Эх сурвалжийг харах

Replace 'foo.length() == 0' pattern with foo.empty().

Stephen Kelly 10 жил өмнө
parent
commit
86b5bdfa08
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      Source/cmCommand.h

+ 1 - 1
Source/cmCommand.h

@@ -155,7 +155,7 @@ public:
    */
   const char* GetError()
     {
-      if(this->Error.length() == 0)
+      if(this->Error.empty())
         {
         this->Error = this->GetName();
         this->Error += " unknown error.";