diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-15 00:59:13 +0100 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-18 14:25:24 +0100 |
commit | 607e19384f19fcf8713ccf0377e0255084ede785 (patch) | |
tree | 09c5363a9c5512972da5b6c459e37018ea042e6a /Source/cmFindPathCommand.cxx | |
parent | 930bd4781694ea85a876c08c34a2dd8243688920 (diff) | |
download | cmake-607e19384f19fcf8713ccf0377e0255084ede785.tar.gz |
Replace 'foo.size() != 0' pattern with !foo.empty().
Diffstat (limited to 'Source/cmFindPathCommand.cxx')
-rw-r--r-- | Source/cmFindPathCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFindPathCommand.cxx b/Source/cmFindPathCommand.cxx index f4cc4c2f02..1490710943 100644 --- a/Source/cmFindPathCommand.cxx +++ b/Source/cmFindPathCommand.cxx @@ -48,7 +48,7 @@ bool cmFindPathCommand } std::string result = this->FindHeader(); - if(result.size() != 0) + if(!result.empty()) { this->Makefile->AddCacheDefinition (this->VariableName, result.c_str(), |