mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 13:23:08 +02:00
Eval: C++11
This commit is contained in:
parent
96f04ffc25
commit
197b440cc2
2 changed files with 4 additions and 14 deletions
|
@ -104,7 +104,6 @@ static bool namedConstants (const std::string& name, Variant& value)
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Eval::Eval ()
|
||||
: _debug (false)
|
||||
{
|
||||
addSource (namedConstants);
|
||||
}
|
||||
|
@ -225,8 +224,7 @@ void Eval::evaluatePostfixStack (
|
|||
|
||||
// This is stack used by the postfix evaluator.
|
||||
std::vector <Variant> values;
|
||||
|
||||
for (auto& token : tokens)
|
||||
for (const auto& token : tokens)
|
||||
{
|
||||
// Unary operators.
|
||||
if (token.second == Lexer::Type::op &&
|
||||
|
@ -861,4 +859,3 @@ std::string Eval::dump (
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue