mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +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 ();
|
||||
if (_debug)
|
||||
{
|
||||
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 result push '{2}'", values.size (), (bool) !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 result push '{2}'", values.size (), (bool) !right));
|
||||
}
|
||||
values.push_back (! right);
|
||||
}
|
||||
|
@ -265,9 +265,9 @@ void Eval::evaluatePostfixStack (
|
|||
values.pop_back ();
|
||||
if (_debug)
|
||||
{
|
||||
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 result push '{2}'", values.size (), (bool) !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 result push '{2}'", values.size (), (bool) !right));
|
||||
}
|
||||
values.push_back (Variant (0) - right);
|
||||
}
|
||||
|
@ -277,7 +277,7 @@ void Eval::evaluatePostfixStack (
|
|||
// NOP?
|
||||
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