cmListCommand: Use empty() and expand whitespace.

This commit is contained in:
Stephen Kelly 2015-01-15 00:48:02 +01:00
parent 607e19384f
commit 6459263377
1 changed files with 1 additions and 1 deletions

View File

@ -340,7 +340,7 @@ bool cmListCommand::HandleInsertCommand(std::vector<std::string> const& args)
std::ostringstream str;
str << "index: " << item << " out of range (-"
<< varArgsExpanded.size() << ", "
<< (varArgsExpanded.size() == 0?0:(varArgsExpanded.size()-1)) << ")";
<< (varArgsExpanded.empty() ? 0 : (varArgsExpanded.size() - 1)) << ")";
this->SetError(str.str());
return false;
}