aboutsummaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/declarative/creation/tst_creation.cpp
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2011-09-19 13:28:13 +0200
committerQt by Nokia <qt-info@nokia.com>2011-09-19 14:35:31 +0200
commit0c9e55886ae3095e998c98e9cc2074dbc5c09c72 (patch)
treebbc4b99e002037a3f947c359df07f0b6138947a3 /tests/benchmarks/declarative/creation/tst_creation.cpp
parent8de9a07c654492a60726e84332bba43cc7b81dbd (diff)
Make declarative/creation benchmark build again
Change-Id: I9ecbdcfc373e95de38e432aa627f6ab93d92afe6 Reviewed-on: http://codereview.qt-project.org/5138 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
Diffstat (limited to 'tests/benchmarks/declarative/creation/tst_creation.cpp')
-rw-r--r--tests/benchmarks/declarative/creation/tst_creation.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/benchmarks/declarative/creation/tst_creation.cpp b/tests/benchmarks/declarative/creation/tst_creation.cpp
index 6659eb5989..2ccdcb43bd 100644
--- a/tests/benchmarks/declarative/creation/tst_creation.cpp
+++ b/tests/benchmarks/declarative/creation/tst_creation.cpp
@@ -264,6 +264,7 @@ void tst_creation::itemtree_notree_cpp()
QDeclarativeItem *item = new QDeclarativeItem;
for (int i = 0; i < 30; ++i) {
QDeclarativeItem *child = new QDeclarativeItem;
+ Q_UNUSED(child);
}
delete item;
}
@@ -340,16 +341,16 @@ void tst_creation::itemtree_scene_cpp()
void tst_creation::elements_data()
{
- QTest::addColumn<QByteArray>("type");
+ QTest::addColumn<QString>("type");
- QList<QByteArray> types = QDeclarativeMetaType::qmlTypeNames();
- foreach (QByteArray type, types)
- QTest::newRow(type.constData()) << type;
+ QList<QString> types = QDeclarativeMetaType::qmlTypeNames();
+ foreach (QString type, types)
+ QTest::newRow(type.toLatin1()) << type;
}
void tst_creation::elements()
{
- QFETCH(QByteArray, type);
+ QFETCH(QString, type);
QDeclarativeType *t = QDeclarativeMetaType::qmlType(type, 2, 0);
if (!t || !t->isCreatable())
QSKIP("Non-creatable type", SkipSingle);