From 64592633773004df83cdd790b9cb1838503ca854 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 15 Jan 2015 00:48:02 +0100 Subject: [PATCH] cmListCommand: Use empty() and expand whitespace. --- Source/cmListCommand.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmListCommand.cxx b/Source/cmListCommand.cxx index 01ae30073..98a263248 100644 --- a/Source/cmListCommand.cxx +++ b/Source/cmListCommand.cxx @@ -340,7 +340,7 @@ bool cmListCommand::HandleInsertCommand(std::vector 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; }