From 038f6fc10092da1414fd2efff353671dbf862995 Mon Sep 17 00:00:00 2001 From: Bea Lam Date: Mon, 8 Mar 2010 11:42:31 +1000 Subject: Make test compile --- .../qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/auto/declarative/qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp b/tests/auto/declarative/qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp index 4f9f21a..9adbc28 100644 --- a/tests/auto/declarative/qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp +++ b/tests/auto/declarative/qdeclarativeworkerscript/tst_qdeclarativeworkerscript.cpp @@ -127,7 +127,7 @@ void tst_QDeclarativeWorkerScript::messaging() QCOMPARE(mo->property(mo->indexOfProperty("response")).read(worker).value(), value); qApp->processEvents(); - delete item; + delete worker; } void tst_QDeclarativeWorkerScript::messaging_data() @@ -164,7 +164,7 @@ void tst_QDeclarativeWorkerScript::messaging_sendQObjectList() QCOMPARE(result, (QVariantList() << QVariant() << QVariant() << QVariant())); qApp->processEvents(); - delete item; + delete worker; } void tst_QDeclarativeWorkerScript::messaging_sendJsObject() @@ -190,7 +190,7 @@ void tst_QDeclarativeWorkerScript::messaging_sendJsObject() QVERIFY(result.toBool()); qApp->processEvents(); - delete item; + delete worker; } QTEST_MAIN(tst_QDeclarativeWorkerScript) -- cgit v0.12