- Code cleanup.
This commit is contained in:
Paul Beckingham 2014-10-23 22:42:21 -04:00
parent f8a44819c3
commit 959df159fa

View file

@ -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));
} }
} }