author | ar <ar> | 2004-05-21 21:03:21 (UTC) |
---|---|---|
committer | ar <ar> | 2004-05-21 21:03:21 (UTC) |
commit | e7810bdfec718c3364e31c2d32357ec0fd2fda77 (patch) (side-by-side diff) | |
tree | 2e5e4028580ca4fce98dc56567731b4cdce4b74b /noncore/tools/calc2 | |
parent | 37294c41a902eab36427372bdda31b4462fd73ca (diff) | |
download | opie-e7810bdfec718c3364e31c2d32357ec0fd2fda77.zip opie-e7810bdfec718c3364e31c2d32357ec0fd2fda77.tar.gz opie-e7810bdfec718c3364e31c2d32357ec0fd2fda77.tar.bz2 |
- convert qDebug to odebug
-rw-r--r-- | noncore/tools/calc2/engine.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/noncore/tools/calc2/engine.cpp b/noncore/tools/calc2/engine.cpp index e843e29..74cd701 100644 --- a/noncore/tools/calc2/engine.cpp +++ b/noncore/tools/calc2/engine.cpp @@ -19,10 +19,17 @@ **********************************************************************/ #include "engine.h" + +/* OPIE */ +#include <opie2/odebug.h> + +/* QT */ #include <qstring.h> -#include <math.h> #include <qlcdnumber.h> +/* STD */ +#include <math.h> + Data Engine::evalStack (Data num, bool inbrace = FALSE) { if (state != sError) { @@ -42,7 +49,7 @@ Data Engine::evalStack (Data num, bool inbrace = FALSE) // Error-check ( change this to work for all types ) if (isnan (num.dbl) || isinf (num.dbl)) { - qDebug ("bad result from operation"); + odebug << "bad result from operation" << oendl; state = sError; clearData(&num); return num; @@ -113,7 +120,7 @@ void Engine::pushValue (char v) state = sAppend; pushValue (v); } else if (state == sError) { - qDebug ("in error state"); + odebug << "in error state" << oendl; return; } } |