diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-15 21:39:38 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-18 13:25:25 (GMT) |
commit | f09fde2d21ef0c97f0ed1b8c6849f0d7055bc24e (patch) | |
tree | 6994c781c124755725d5ee2c6199d74744f2de57 /Source/cmake.cxx | |
parent | 86b5bdfa0874a0eb97d726fa9dc2f534e5a67c7e (diff) | |
download | CMake-f09fde2d21ef0c97f0ed1b8c6849f0d7055bc24e.zip CMake-f09fde2d21ef0c97f0ed1b8c6849f0d7055bc24e.tar.gz CMake-f09fde2d21ef0c97f0ed1b8c6849f0d7055bc24e.tar.bz2 |
Replace 'foo.length() > 0' pattern with !foo.empty().
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 2a2f2ab..7accec2 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -909,7 +909,7 @@ void cmake::SetDirectoriesFromFile(const char* arg) } // If there is a CMakeCache.txt file, use its settings. - if(cachePath.length() > 0) + if(!cachePath.empty()) { cmCacheManager* cachem = this->GetCacheManager(); cmCacheManager::CacheIterator it = cachem->NewIterator(); @@ -925,7 +925,7 @@ void cmake::SetDirectoriesFromFile(const char* arg) } // If there is a CMakeLists.txt file, use it as the source tree. - if(listPath.length() > 0) + if(!listPath.empty()) { this->SetHomeDirectory(listPath); this->SetStartDirectory(listPath); |