mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdCalc: Eliminated temporary storage
This commit is contained in:
parent
358223a6b1
commit
4820bde41e
1 changed files with 1 additions and 2 deletions
|
@ -63,8 +63,7 @@ int CmdCalc::execute (std::string& output)
|
||||||
|
|
||||||
// Compile all the args into one expression.
|
// Compile all the args into one expression.
|
||||||
std::string expression;
|
std::string expression;
|
||||||
std::vector <std::string> words = context.cli2.getWords ();
|
for (auto& word : context.cli2.getWords ())
|
||||||
for (auto& word : words)
|
|
||||||
expression += word + " ";
|
expression += word + " ";
|
||||||
|
|
||||||
// Evaluate according to preference.
|
// Evaluate according to preference.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue