summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2012-02-29 12:49:00 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-29 16:51:07 +0100
commite28be90dea1414e875d9f45f6a1d3e3f7c9ab7ec (patch)
tree235c625cc34a32319d7312799863034b9ffb1481
parent8dfc86e0d6391a9e923557732a3ddc6c37d98b89 (diff)
Fix build of QWizard tests with QT_USE_QSTRINGBUILDER
Change-Id: Id276cdb9b84c61bf75a5bde149142f39f52f563e Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
-rw-r--r--tests/auto/widgets/dialogs/qwizard/tst_qwizard.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/widgets/dialogs/qwizard/tst_qwizard.cpp b/tests/auto/widgets/dialogs/qwizard/tst_qwizard.cpp
index 872c13216f..9d9b55cafd 100644
--- a/tests/auto/widgets/dialogs/qwizard/tst_qwizard.cpp
+++ b/tests/auto/widgets/dialogs/qwizard/tst_qwizard.cpp
@@ -562,8 +562,8 @@ void tst_QWizard::setDefaultProperty()
// make sure the data structure is reasonable
for (int i = 0; i < 200000; ++i) {
- wizard.setDefaultProperty("QLineEdit", "x" + QByteArray::number(i), 0);
- wizard.setDefaultProperty("QLabel", "y" + QByteArray::number(i), 0);
+ wizard.setDefaultProperty("QLineEdit", QByteArray("x" + QByteArray::number(i)).constData(), 0);
+ wizard.setDefaultProperty("QLabel", QByteArray("y" + QByteArray::number(i)).constData(), 0);
}
}