diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-14 23:48:02 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-18 13:25:24 (GMT) |
commit | 64592633773004df83cdd790b9cb1838503ca854 (patch) | |
tree | 66cd0342fb99e418f1c47da1373112e82e38c790 /Source/cmListCommand.cxx | |
parent | 607e19384f19fcf8713ccf0377e0255084ede785 (diff) | |
download | CMake-64592633773004df83cdd790b9cb1838503ca854.zip CMake-64592633773004df83cdd790b9cb1838503ca854.tar.gz CMake-64592633773004df83cdd790b9cb1838503ca854.tar.bz2 |
cmListCommand: Use empty() and expand whitespace.
Diffstat (limited to 'Source/cmListCommand.cxx')
-rw-r--r-- | Source/cmListCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmListCommand.cxx b/Source/cmListCommand.cxx index 01ae300..98a2632 100644 --- a/Source/cmListCommand.cxx +++ b/Source/cmListCommand.cxx @@ -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; } |