diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-15 22:39:38 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-18 13:25:25 (GMT) |
commit | 5f69314ea65ebd0de23484e7c91bd12a8bf861f6 (patch) | |
tree | d50bbf578696dfa13e36dbf684de70a2a0c913d8 /Source/cmLoadCacheCommand.cxx | |
parent | fd0c036c0c3e5e6be685e64caecdcbad4b3e744c (diff) | |
download | CMake-5f69314ea65ebd0de23484e7c91bd12a8bf861f6.zip CMake-5f69314ea65ebd0de23484e7c91bd12a8bf861f6.tar.gz CMake-5f69314ea65ebd0de23484e7c91bd12a8bf861f6.tar.bz2 |
Replace foo.length() pattern with !foo.empty().
Diffstat (limited to 'Source/cmLoadCacheCommand.cxx')
-rw-r--r-- | Source/cmLoadCacheCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLoadCacheCommand.cxx b/Source/cmLoadCacheCommand.cxx index 427e29d..540dd3b 100644 --- a/Source/cmLoadCacheCommand.cxx +++ b/Source/cmLoadCacheCommand.cxx @@ -160,7 +160,7 @@ bool cmLoadCacheCommand::ReadWithPrefix(std::vector<std::string> const& args) } } } - if(line.length()) + if(!line.empty()) { // Partial last line. this->CheckLine(line.c_str()); @@ -184,7 +184,7 @@ void cmLoadCacheCommand::CheckLine(const char* line) // This was requested. Set this variable locally with the given // prefix. var = this->Prefix + var; - if(value.length()) + if(!value.empty()) { this->Makefile->AddDefinition(var, value.c_str()); } |