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:
Ulf Hermann 2023-10-18 15:18:45 +02:00
parent 1be6d083a2
commit a4346439ce
1 changed files with 1 additions and 1 deletions

View File

@ -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>)));