mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Replace 'foo.length() == 0' pattern with foo.empty().
This commit is contained in:
+1
-1
@@ -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.";
|
||||
|
||||
Reference in New Issue
Block a user