From 07843b1b120f04487adb192bd377dcc874f06bbb Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 25 Jan 2013 14:59:33 +0100 Subject: [PATCH] Fix warning about incorrect format in tst_qlocale. type is unsigned long, should be %lu. Replace by stream. Change-Id: Ib0346b54a4494910b4a5927d0de45840ca53fbda Reviewed-by: Kai Koehne --- tests/auto/corelib/tools/qlocale/tst_qlocale.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/auto/corelib/tools/qlocale/tst_qlocale.cpp b/tests/auto/corelib/tools/qlocale/tst_qlocale.cpp index 8cdad67966..419b21c9e1 100644 --- a/tests/auto/corelib/tools/qlocale/tst_qlocale.cpp +++ b/tests/auto/corelib/tools/qlocale/tst_qlocale.cpp @@ -42,7 +42,7 @@ #include #include -#include +#include #include #include #include @@ -1281,7 +1281,7 @@ static QString getWinLocaleInfo(LCTYPE type) int cnt = GetLocaleInfo(id, type, 0, 0) * 2; if (cnt == 0) { - qWarning("QLocale: empty windows locale info (%d)", type); + qWarning().nospace() << "QLocale: empty windows locale info (" << type << ')'; return QString(); } cnt /= sizeof(wchar_t); @@ -1289,7 +1289,7 @@ static QString getWinLocaleInfo(LCTYPE type) cnt = GetLocaleInfo(id, type, buf.data(), cnt); if (cnt == 0) { - qWarning("QLocale: empty windows locale info (%d)", type); + qWarning().nospace() << "QLocale: empty windows locale info (" << type << ')'; return QString(); } return QString::fromWCharArray(buf.data());