[Scummvm-cvs-logs] SF.net SVN: scummvm: [29366] scummvm/trunk/gui/eval.cpp
cyx at users.sourceforge.net
cyx at users.sourceforge.net
Thu Nov 1 19:21:15 CET 2007
Revision: 29366
http://scummvm.svn.sourceforge.net/scummvm/?rev=29366&view=rev
Author: cyx
Date: 2007-11-01 11:21:15 -0700 (Thu, 01 Nov 2007)
Log Message:
-----------
warning, minor simplification
Modified Paths:
--------------
scummvm/trunk/gui/eval.cpp
Modified: scummvm/trunk/gui/eval.cpp
===================================================================
--- scummvm/trunk/gui/eval.cpp 2007-11-01 18:16:52 UTC (rev 29365)
+++ scummvm/trunk/gui/eval.cpp 2007-11-01 18:21:15 UTC (rev 29366)
@@ -33,10 +33,7 @@
namespace GUI {
static bool isdelim(char c) {
- if (strchr(" ;,+-<>/*%^=()", c) || c == 9 || c == '\n' || !c)
- return true;
-
- return false;
+ return strchr(" ;,+-<>/*%^=()", c) != 0 || c == 9 || c == '\n' || !c;
}
Eval::Eval() {
@@ -151,8 +148,6 @@
}
void Eval::arith(char op, int *r, int *h) {
- int t;
-
switch (op) {
case '-':
*r = *r - *h;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list