summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-14 23:59:13 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-18 13:25:24 (GMT)
commit607e19384f19fcf8713ccf0377e0255084ede785 (patch)
tree09c5363a9c5512972da5b6c459e37018ea042e6a /Source/cmTarget.cxx
parent930bd4781694ea85a876c08c34a2dd8243688920 (diff)
downloadCMake-607e19384f19fcf8713ccf0377e0255084ede785.zip
CMake-607e19384f19fcf8713ccf0377e0255084ede785.tar.gz
CMake-607e19384f19fcf8713ccf0377e0255084ede785.tar.bz2
Replace 'foo.size() != 0' pattern with !foo.empty().
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 8e060c4..c193f20 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -1513,7 +1513,7 @@ cmTarget::AnalyzeLibDependenciesForVS6( const cmMakefile& mf )
{
// skip zero size library entries, this may happen
// if a variable expands to nothing.
- if (lib->first.size() != 0)
+ if (!lib->first.empty())
{
this->EmitForVS6( *lib, dep_map, done, visited, newLinkLibrariesForVS6 );
}
@@ -1653,7 +1653,7 @@ void cmTarget::GatherDependenciesForVS6( const cmMakefile& mf,
while( end != std::string::npos )
{
std::string l = depline.substr( start, end-start );
- if( l.size() != 0 )
+ if(!l.empty())
{
if (l == "debug")
{