mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-15 12:16:40 +08:00
Replace 'foo.length() == 0' pattern with foo.empty().
This commit is contained in:
@@ -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