CmdCalc: Eliminated temporary storage

This commit is contained in:
Paul Beckingham 2015-06-27 23:08:56 -04:00
parent 358223a6b1
commit 4820bde41e

View file

@ -63,8 +63,7 @@ int CmdCalc::execute (std::string& output)
// Compile all the args into one expression.
std::string expression;
std::vector <std::string> words = context.cli2.getWords ();
for (auto& word : words)
for (auto& word : context.cli2.getWords ())
expression += word + " ";
// Evaluate according to preference.