mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-11 23:43:58 +03:00
Replace 'foo.size() != 0' pattern with !foo.empty().
This commit is contained in:
1 parent
524610f967
commit
8f89f8b1e9
1 file changed
+1
-1
@@ -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] == ' ')
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user