summaryrefslogtreecommitdiffstats
path: root/Source/cmListCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-14 23:48:02 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-18 13:25:24 (GMT)
commit64592633773004df83cdd790b9cb1838503ca854 (patch)
tree66cd0342fb99e418f1c47da1373112e82e38c790 /Source/cmListCommand.cxx
parent607e19384f19fcf8713ccf0377e0255084ede785 (diff)
downloadCMake-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.cxx2
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;
}