summaryrefslogtreecommitdiffstats
path: root/Source/cmAuxSourceDirectoryCommand.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/cmAuxSourceDirectoryCommand.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/cmAuxSourceDirectoryCommand.cxx')
-rw-r--r--Source/cmAuxSourceDirectoryCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmAuxSourceDirectoryCommand.cxx b/Source/cmAuxSourceDirectoryCommand.cxx
index d8c3c43..a30d992 100644
--- a/Source/cmAuxSourceDirectoryCommand.cxx
+++ b/Source/cmAuxSourceDirectoryCommand.cxx
@@ -61,7 +61,7 @@ bool cmAuxSourceDirectoryCommand::InitialPass
std::string ext = file.substr(dotpos+1);
std::string base = file.substr(0, dotpos);
// Process only source files
- if( base.size() != 0
+ if(!base.empty()
&& std::find( this->Makefile->GetSourceExtensions().begin(),
this->Makefile->GetSourceExtensions().end(), ext )
!= this->Makefile->GetSourceExtensions().end() )