Replace 'foo.size() != 0' pattern with !foo.empty().

This commit is contained in:
Stephen Kelly 2015-01-16 01:13:57 +01:00
parent 524610f967
commit 8f89f8b1e9
1 changed files with 1 additions and 1 deletions

View File

@ -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] == ' ')
{