aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-03-07 11:59:37 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-11 17:31:54 +0100
commit457abe24baa709c55cf6d1951c7fb13400f0202e (patch)
treede00d6cd2c251a1546b9d0f7ecbeed76cf1bec06 /tests/auto/qml
parent94fd6bdcd271a0404c518fa8a5ccfd9909919efe (diff)
Fix warning about uninitialized value in QML-ECMA-test (CLANG).
Change-Id: Ifcc3ef0e0e65245758697d7302e8227bb6e748f7 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
Diffstat (limited to 'tests/auto/qml')
-rw-r--r--tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
index fee66695fc..cc49f234c1 100644
--- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
+++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
@@ -1491,7 +1491,7 @@ void tst_qqmlecmascript::componentCreation()
if (creationError.isEmpty()) {
QVERIFY(created);
- QObject *expectedParent;
+ QObject *expectedParent = reinterpret_cast<QObject *>(quintptr(-1));
if (createdParent == QLatin1String("obj")) {
expectedParent = object;
} else if ((createdParent == QLatin1String("null")) || createdParent.isEmpty()) {