diff --git a/src/corelib/serialization/qtextstream.cpp b/src/corelib/serialization/qtextstream.cpp index 7b86caf633d..0dbbe04aadc 100644 --- a/src/corelib/serialization/qtextstream.cpp +++ b/src/corelib/serialization/qtextstream.cpp @@ -928,7 +928,7 @@ QTextStream::QTextStream(QString *string, OpenMode openMode) { #if defined (QTEXTSTREAM_DEBUG) qDebug("QTextStream::QTextStream(QString *string == *%p, openMode = %d)", - string, int(openMode)); + string, int(openMode.toInt())); #endif Q_D(QTextStream); d->string = string; @@ -946,7 +946,7 @@ QTextStream::QTextStream(QByteArray *array, OpenMode openMode) { #if defined (QTEXTSTREAM_DEBUG) qDebug("QTextStream::QTextStream(QByteArray *array == *%p, openMode = %d)", - array, int(openMode)); + array, int(openMode.toInt())); #endif Q_D(QTextStream); d->device = new QBuffer(array); @@ -973,7 +973,7 @@ QTextStream::QTextStream(const QByteArray &array, OpenMode openMode) { #if defined (QTEXTSTREAM_DEBUG) qDebug("QTextStream::QTextStream(const QByteArray &array == *(%p), openMode = %d)", - &array, int(openMode)); + &array, int(openMode.toInt())); #endif QBuffer *buffer = new QBuffer; buffer->setData(array); @@ -1004,7 +1004,7 @@ QTextStream::QTextStream(FILE *fileHandle, OpenMode openMode) { #if defined (QTEXTSTREAM_DEBUG) qDebug("QTextStream::QTextStream(FILE *fileHandle = %p, openMode = %d)", - fileHandle, int(openMode)); + fileHandle, int(openMode.toInt())); #endif QFile *file = new QFile; // Discarding the return value of open; even if it failed