Use qWarning() to output warnings.
authorJason McDonald <jason.mcdonald@nokia.com>
Thu, 10 Nov 2011 03:07:57 +0000 (13:07 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 11 Nov 2011 03:28:03 +0000 (04:28 +0100)
Change-Id: I366f70f27de0329749e5dcbdcbec8d56bffb4255
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/corelib/codecs/qtextcodec/tst_qtextcodec.cpp

index cbeca96..db3cc6c 100644 (file)
@@ -1946,7 +1946,7 @@ static QByteArray loadAndConvert(const QByteArray &codecName)
 {
     QTextCodec *c = QTextCodec::codecForName(codecName);
     if (!c) {
-        qDebug() << "WARNING " << codecName << " not found? ";
+        qWarning() << "WARNING" << codecName << "not found?";
         return QByteArray();
     }
     QString str = QString::fromLatin1(codecName);
@@ -1959,7 +1959,7 @@ static int loadAndConvertMIB(int mib)
 {
     QTextCodec *c = QTextCodec::codecForMib(mib);
     if (!c) {
-        qDebug() << "WARNING " << mib << " not found? ";
+        qWarning() << "WARNING" << mib << "not found?";
         return 0;
     }
     QString str = QString::number(mib);