summaryrefslogtreecommitdiffstats
path: root/src/corelib/io
diff options
context:
space:
mode:
authorHarald Fernengel <harald@trolltech.com>2009-03-31 15:07:20 (GMT)
committerHarald Fernengel <harald@trolltech.com>2009-03-31 15:07:20 (GMT)
commita78f2ea2313df413dc8f7659c6dc3d098b18c263 (patch)
tree97308ad4edf755e80c7e4d0a10035af845b2da6d /src/corelib/io
parent981be3911e925c3f501cc85cdecf9dc3f2a73f43 (diff)
downloadQt-a78f2ea2313df413dc8f7659c6dc3d098b18c263.zip
Qt-a78f2ea2313df413dc8f7659c6dc3d098b18c263.tar.gz
Qt-a78f2ea2313df413dc8f7659c6dc3d098b18c263.tar.bz2
compile with QIODEVICE_DEBUG
remove Qt3Support calls and include ctype.h for isprint()
Diffstat (limited to 'src/corelib/io')
-rw-r--r--src/corelib/io/qiodevice.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/corelib/io/qiodevice.cpp b/src/corelib/io/qiodevice.cpp
index c739054..b6c4eb1 100644
--- a/src/corelib/io/qiodevice.cpp
+++ b/src/corelib/io/qiodevice.cpp
@@ -48,6 +48,10 @@
#include "qstringlist.h"
#include <limits.h>
+#ifdef QIODEVICE_DEBUG
+# include <ctype.h>
+#endif
+
QT_BEGIN_NAMESPACE
#ifdef QIODEVICE_DEBUG
@@ -362,7 +366,7 @@ QIODevice::QIODevice()
{
#if defined QIODEVICE_DEBUG
QFile *file = qobject_cast<QFile *>(this);
- printf("%p QIODevice::QIODevice(\"%s\") %s\n", this, className(),
+ printf("%p QIODevice::QIODevice(\"%s\") %s\n", this, metaObject()->className(),
qPrintable(file ? file->fileName() : QString()));
#endif
}
@@ -375,7 +379,7 @@ QIODevice::QIODevice(QObject *parent)
: QObject(*new QIODevicePrivate, parent)
{
#if defined QIODEVICE_DEBUG
- printf("%p QIODevice::QIODevice(%p \"%s\")\n", this, parent, className());
+ printf("%p QIODevice::QIODevice(%p \"%s\")\n", this, parent, metaObject()->className());
#endif
}