summaryrefslogtreecommitdiff
path: root/Source/cmBuildNameCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-15 23:39:38 +0100
committerStephen Kelly <steveire@gmail.com>2015-01-18 14:25:25 +0100
commit5f69314ea65ebd0de23484e7c91bd12a8bf861f6 (patch)
treed50bbf578696dfa13e36dbf684de70a2a0c913d8 /Source/cmBuildNameCommand.cxx
parentfd0c036c0c3e5e6be685e64caecdcbad4b3e744c (diff)
downloadcmake-5f69314ea65ebd0de23484e7c91bd12a8bf861f6.tar.gz
Replace foo.length() pattern with !foo.empty().
Diffstat (limited to 'Source/cmBuildNameCommand.cxx')
-rw-r--r--Source/cmBuildNameCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmBuildNameCommand.cxx b/Source/cmBuildNameCommand.cxx
index c64209f88c..171ed0fe58 100644
--- a/Source/cmBuildNameCommand.cxx
+++ b/Source/cmBuildNameCommand.cxx
@@ -50,7 +50,7 @@ bool cmBuildNameCommand
{
buildname = "";
cmSystemTools::RunSingleCommand("uname -a", &buildname);
- if(buildname.length())
+ if(!buildname.empty())
{
std::string RegExp = "([^ ]*) [^ ]* ([^ ]*) ";
cmsys::RegularExpression reg( RegExp.c_str() );