mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Replace foo.length() pattern with !foo.empty().
This commit is contained in:
@@ -160,7 +160,7 @@ bool cmLoadCacheCommand::ReadWithPrefix(std::vector<std::string> const& args)
|
||||
}
|
||||
}
|
||||
}
|
||||
if(line.length())
|
||||
if(!line.empty())
|
||||
{
|
||||
// Partial last line.
|
||||
this->CheckLine(line.c_str());
|
||||
@@ -184,7 +184,7 @@ void cmLoadCacheCommand::CheckLine(const char* line)
|
||||
// This was requested. Set this variable locally with the given
|
||||
// prefix.
|
||||
var = this->Prefix + var;
|
||||
if(value.length())
|
||||
if(!value.empty())
|
||||
{
|
||||
this->Makefile->AddDefinition(var, value.c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user