mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-30 02:17:21 +02:00
Eval
- Code cleanup.
This commit is contained in:
parent
f8a44819c3
commit
959df159fa
1 changed files with 7 additions and 7 deletions
14
src/Eval.cpp
14
src/Eval.cpp
|
@ -249,9 +249,9 @@ void Eval::evaluatePostfixStack (
|
||||||
values.pop_back ();
|
values.pop_back ();
|
||||||
if (_debug)
|
if (_debug)
|
||||||
{
|
{
|
||||||
context.debug (format ("[{1}] eval pop '{2}'", values.size () + 1, (std::string) right));
|
context.debug (format ("[{1}] eval pop '{2}'", values.size () + 1, (std::string) right));
|
||||||
context.debug (format ("[{1}] eval operator '{2}'", values.size (), token->first));
|
context.debug (format ("[{1}] eval operator '{2}'", values.size (), token->first));
|
||||||
context.debug (format ("[{1}] eval result push '{2}'", values.size (), (bool) !right));
|
context.debug (format ("[{1}] eval result push '{2}'", values.size (), (bool) !right));
|
||||||
}
|
}
|
||||||
values.push_back (! right);
|
values.push_back (! right);
|
||||||
}
|
}
|
||||||
|
@ -265,9 +265,9 @@ void Eval::evaluatePostfixStack (
|
||||||
values.pop_back ();
|
values.pop_back ();
|
||||||
if (_debug)
|
if (_debug)
|
||||||
{
|
{
|
||||||
context.debug (format ("[{1}] eval pop '{2}'", values.size () + 1, (std::string) right));
|
context.debug (format ("[{1}] eval pop '{2}'", values.size () + 1, (std::string) right));
|
||||||
context.debug (format ("[{1}] eval operator '{2}'", values.size (), token->first));
|
context.debug (format ("[{1}] eval operator '{2}'", values.size (), token->first));
|
||||||
context.debug (format ("[{1}] eval result push '{2}'", values.size (), (bool) !right));
|
context.debug (format ("[{1}] eval result push '{2}'", values.size (), (bool) !right));
|
||||||
}
|
}
|
||||||
values.push_back (Variant (0) - right);
|
values.push_back (Variant (0) - right);
|
||||||
}
|
}
|
||||||
|
@ -277,7 +277,7 @@ void Eval::evaluatePostfixStack (
|
||||||
// NOP?
|
// NOP?
|
||||||
if (_debug)
|
if (_debug)
|
||||||
{
|
{
|
||||||
context.debug (format ("[{1}] eval operator '{2}'", values.size (), token->first));
|
context.debug (format ("[{1}] eval operator '{2}'", values.size (), token->first));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue