-rw-r--r-- | noncore/apps/zsafe/zsafe.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/noncore/apps/zsafe/zsafe.cpp b/noncore/apps/zsafe/zsafe.cpp index 3df55eb..bf8f7f4 100644 --- a/noncore/apps/zsafe/zsafe.cpp +++ b/noncore/apps/zsafe/zsafe.cpp @@ -30,5 +30,6 @@ #ifndef NO_OPIE #include <opie2/ofiledialog.h> - +#include <opie2/odebug.h> +using namespace Opie::Core; using namespace Opie::Ui; #else @@ -39,6 +40,4 @@ using namespace Opie::Ui; #include <qclipboard.h> -#include <stdio.h> - #include <sys/types.h> #include <sys/stat.h> @@ -2070,5 +2069,4 @@ int ZSafe::loadInit(const char* _filename, const char *password) size = read(fileno (fd), (unsigned char *) (charbuf + count), 8); #else - printf ("LoadInit() read1"); size = fread ((unsigned char *) (charbuf + count), sizeof(unsigned char), 8, fd); #endif @@ -2090,5 +2088,4 @@ int ZSafe::loadInit(const char* _filename, const char *password) count2 = read (fileno (fd), (unsigned char *) (charbuf + count), 8); #else - printf ("LoadInit() read2"); while ((count = fread ((unsigned char *) (charbuf), sizeof(unsigned char), 8, fd)) > 0) { while (count < 8) { @@ -2260,5 +2257,5 @@ bool ZSafe::saveDocument(const char* _filename, for (int z=0; z<i; z++) free(entry[z]); if (retval == PWERR_DATA) { - qWarning("1: Error writing file, contents not saved"); + owarn << "1: Error writing file, contents not saved" << oendl; saveFinalize(); return false; @@ -2304,5 +2301,5 @@ bool ZSafe::saveDocument(const char* _filename, } if (retval == PWERR_DATA) { - qWarning("1: Error writing file, contents not saved"); + owarn << "1: Error writing file, contents not saved" << oendl; saveFinalize(); return false; @@ -2313,5 +2310,5 @@ bool ZSafe::saveDocument(const char* _filename, if (saveFinalize() == PWERR_DATA) { - qWarning("2: Error writing file, contents not saved"); + owarn << "2: Error writing file, contents not saved" << oendl; return false; } else { @@ -3191,5 +3188,5 @@ void ZSafe::editCategory() if (cat) { - qWarning("Category found"); + owarn << "Category found" << oendl; // if (!icon.isEmpty() && !icon.isNull()) |