From 1ac96b5dbc89f5eaf6336d90e5d5c39d5c8113b5 Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Tue, 22 Sep 2009 16:22:45 +0300 Subject: Added explicit casts to make QScriptValue autotest compile with NokiaX86 NokiaX86 compiler has problems with implicit casts and templates, so worked around this problem with explicit casts. Reviewed-by: Janne Koskinen --- tests/auto/qscriptvalue/tst_qscriptvalue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp index 243b810..3b9da4d 100644 --- a/tests/auto/qscriptvalue/tst_qscriptvalue.cpp +++ b/tests/auto/qscriptvalue/tst_qscriptvalue.cpp @@ -2253,7 +2253,7 @@ void tst_QScriptValue::getSetScriptClass() QVERIFY(obj.isVariant()); QCOMPARE(obj.scriptClass(), (QScriptClass*)0); obj.setScriptClass(&testClass); - QCOMPARE(obj.scriptClass(), &testClass); + QCOMPARE(obj.scriptClass(), (QScriptClass*)&testClass); QVERIFY(obj.isObject()); QVERIFY(!obj.isVariant()); QVERIFY(!obj.toVariant().isValid()); @@ -2263,7 +2263,7 @@ void tst_QScriptValue::getSetScriptClass() QVERIFY(obj.isQObject()); QCOMPARE(obj.scriptClass(), (QScriptClass*)0); obj.setScriptClass(&testClass); - QCOMPARE(obj.scriptClass(), &testClass); + QCOMPARE(obj.scriptClass(), (QScriptClass*)&testClass); QVERIFY(obj.isObject()); QVERIFY(!obj.isQObject()); QVERIFY(obj.toQObject() == 0); -- cgit v0.12