tst_qqmllistmodelworkerscript: Avoid memory leak
QTest: :toString() is bad. Change-Id: Id1a617344b521d79f8e279ebdc67d2c11ce6a8fa Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
This commit is contained in:
parent
1be6d083a2
commit
a4346439ce
|
@ -578,7 +578,7 @@ void tst_qqmllistmodelworkerscript::property_changes_worker()
|
|||
|
||||
QQmlExpression expr(engine.rootContext(), &model, script_setup);
|
||||
expr.evaluate();
|
||||
QVERIFY2(!expr.hasError(), QTest::toString(expr.error().toString()));
|
||||
QVERIFY2(!expr.hasError(), qPrintable(expr.error().toString()));
|
||||
|
||||
QSignalSpy spyItemsChanged(&model, SIGNAL(dataChanged(QModelIndex,QModelIndex,QList<int>)));
|
||||
|
||||
|
|
Loading…
Reference in New Issue