diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-16 00:13:57 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-08-24 18:47:17 (GMT) |
commit | 8f89f8b1e9693abbc50d917c04846000bf14e189 (patch) | |
tree | 02b3408f489beefc8a2cd9e1c33b9398317925fa /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | 524610f967e5289810a0d67a2942493d8f61d1dd (diff) | |
download | CMake-8f89f8b1e9693abbc50d917c04846000bf14e189.zip CMake-8f89f8b1e9693abbc50d917c04846000bf14e189.tar.gz CMake-8f89f8b1e9693abbc50d917c04846000bf14e189.tar.bz2 |
Replace 'foo.size() != 0' pattern with !foo.empty().
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index a6568f1..6344979 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -2422,7 +2422,7 @@ cmVisualStudio10TargetGenerator::ComputeLinkOptions(std::string const& config) libs = this->Makefile->GetSafeDefinition(standardLibsVar.c_str()); // Remove trailing spaces from libs std::string::size_type pos = libs.size()-1; - if(libs.size() != 0) + if(!libs.empty()) { while(libs[pos] == ' ') { |