summaryrefslogtreecommitdiff
path: root/noncore/apps/zsafe/main.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/zsafe/main.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/zsafe/main.cpp25
1 files changed, 15 insertions, 10 deletions
diff --git a/noncore/apps/zsafe/main.cpp b/noncore/apps/zsafe/main.cpp
index 4fe319b..5f48f77 100644
--- a/noncore/apps/zsafe/main.cpp
+++ b/noncore/apps/zsafe/main.cpp
@@ -10,2 +10,8 @@
#include "zsafe.h"
+
+/* OPIE */
+#include <opie2/odebug.h>
+using namespace Opie::Core;
+
+/* QT */
#ifdef DESKTOP
@@ -15,2 +21,4 @@
#endif
+
+/* STD */
#include <stdio.h>
@@ -60,6 +68,6 @@ int main( int argc, char ** argv )
#else
- int w, h;
- sscanf (argv[1], "%d", &w);
- sscanf (argv[2], "%d", &h);
- DeskW = w;
+ int w, h;
+ sscanf (argv[1], "%d", &w);
+ sscanf (argv[2], "%d", &h);
+ DeskW = w;
DeskH = h;
@@ -76,5 +84,3 @@ int main( int argc, char ** argv )
- char buf[128];
- sprintf (buf, "Width: %d Height: %d\n", DeskW, DeskH);
- qWarning (buf);
+ owarn << "Width: " << DeskW << " Height: " << DeskH << oendl;
@@ -83,3 +89,3 @@ int main( int argc, char ** argv )
#else
- if (DeskW > 240)
+ if (DeskW > 240)
{
@@ -87,4 +93,3 @@ int main( int argc, char ** argv )
DeskH += 25;
- sprintf (buf, "Changed width: %d Height: %d\n", DeskW, DeskH);
- qWarning (buf);
+ owarn << "Changed width: " << DeskW << " Height: " << DeskH << oendl;
}