mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-16 22:37:30 +08:00
Replace 'foo.length() == 0' pattern with foo.empty().
This commit is contained in:
@@ -155,7 +155,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
const char* GetError()
|
const char* GetError()
|
||||||
{
|
{
|
||||||
if(this->Error.length() == 0)
|
if(this->Error.empty())
|
||||||
{
|
{
|
||||||
this->Error = this->GetName();
|
this->Error = this->GetName();
|
||||||
this->Error += " unknown error.";
|
this->Error += " unknown error.";
|
||||||
|
Reference in New Issue
Block a user