mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Cleanup: Don't use string literals when character literals are needed
This commit is contained in:
parent
99a7cfceac
commit
35e518cbc2
58 changed files with 372 additions and 374 deletions
|
@ -69,7 +69,7 @@ int CmdCalc::execute (std::string& output)
|
|||
// Compile all the args into one expression.
|
||||
std::string expression;
|
||||
for (auto& word : context.cli2.getWords ())
|
||||
expression += word + " ";
|
||||
expression += word + ' ';
|
||||
|
||||
// Evaluate according to preference.
|
||||
Variant result;
|
||||
|
@ -78,7 +78,7 @@ int CmdCalc::execute (std::string& output)
|
|||
else
|
||||
e.evaluatePostfixExpression (expression, result);
|
||||
|
||||
output = (std::string) result + "\n";
|
||||
output = (std::string) result + '\n';
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue