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 <kai.koehne@digia.com>bb10
parent
b7eaf2efdf
commit
07843b1b12
|
|
@ -42,7 +42,7 @@
|
|||
|
||||
#include <QtTest/QtTest>
|
||||
#include <math.h>
|
||||
#include <qglobal.h>
|
||||
#include <qdebug.h>
|
||||
#include <qdir.h>
|
||||
#include <qfileinfo.h>
|
||||
#include <QScopedArrayPointer>
|
||||
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue