summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/qnodebug/tst_qnodebug.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2015-02-20 20:43:29 +0100
committerMarc Mutz <marc.mutz@kdab.com>2015-02-21 16:58:31 +0000
commit94d79cf3d50b1a01ae1a73d6b9457d1047db7877 (patch)
tree3ea08c5f5184e5c8bc3fa013e70bc82a76458e44 /tests/auto/corelib/io/qnodebug/tst_qnodebug.cpp
parentea80316f4ad5401a90cb74c54fc25ba5ff29ed48 (diff)
tst_QNoDebug: don't use sprintf if there're no arguments
This slipped in with commit 1d2efe1f27bedcbaa157ef4e82b8eda33dda46ad, but is of course completely bogus (though harmless). Change-Id: If3875b65af0fa3fe85216391599433158043e361 Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'tests/auto/corelib/io/qnodebug/tst_qnodebug.cpp')
-rw-r--r--tests/auto/corelib/io/qnodebug/tst_qnodebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/io/qnodebug/tst_qnodebug.cpp b/tests/auto/corelib/io/qnodebug/tst_qnodebug.cpp
index 12a67be213..ae08a4631d 100644
--- a/tests/auto/corelib/io/qnodebug/tst_qnodebug.cpp
+++ b/tests/auto/corelib/io/qnodebug/tst_qnodebug.cpp
@@ -70,7 +70,7 @@ void tst_QNoDebug::streaming() const
{
QDateTime dt(QDate(1,2,3),QTime(4,5,6));
const QString debugString = dt.toString(QStringLiteral("yyyy-MM-dd HH:mm:ss.zzz t"));
- QTest::ignoreMessage(QtWarningMsg, qPrintable(QString::asprintf("QDateTime(\"%1\" Qt::TimeSpec(LocalTime))").arg(debugString)));
+ QTest::ignoreMessage(QtWarningMsg, qPrintable(QString::fromLatin1("QDateTime(\"%1\" Qt::TimeSpec(LocalTime))").arg(debugString)));
qWarning() << dt;
}