summaryrefslogtreecommitdiffstats
path: root/Source/cmCommand.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-15 21:36:31 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-18 13:25:24 (GMT)
commit86b5bdfa0874a0eb97d726fa9dc2f534e5a67c7e (patch)
treed9b8cb0006c355933276899e96b0516b3da564c1 /Source/cmCommand.h
parentfd7b37129360364531ddfeda7edb6e34ba773d00 (diff)
downloadCMake-86b5bdfa0874a0eb97d726fa9dc2f534e5a67c7e.zip
CMake-86b5bdfa0874a0eb97d726fa9dc2f534e5a67c7e.tar.gz
CMake-86b5bdfa0874a0eb97d726fa9dc2f534e5a67c7e.tar.bz2
Replace 'foo.length() == 0' pattern with foo.empty().
Diffstat (limited to 'Source/cmCommand.h')
-rw-r--r--Source/cmCommand.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCommand.h b/Source/cmCommand.h
index a34ea71..6689243 100644
--- a/Source/cmCommand.h
+++ b/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.";