1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-15 20:46:37 +08:00

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

This commit is contained in:
Stephen Kelly
2015-01-15 22:36:31 +01:00
parent fd7b371293
commit 86b5bdfa08

View File

@@ -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.";