A GCC 4.8 build fix

Change-Id: Ic128486711118e1124739e8dca30547ab8ba9816
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Ville Voutilainen 2019-08-06 10:50:52 +03:00
parent 4d9375020c
commit ca20b44959

View File

@ -486,7 +486,7 @@ void tst_QApplication::lastWindowClosed()
QPointer<QDialog> dialog = new QDialog; QPointer<QDialog> dialog = new QDialog;
dialog->setWindowTitle(QLatin1String(QTest::currentTestFunction()) + QLatin1String("Dialog")); dialog->setWindowTitle(QLatin1String(QTest::currentTestFunction()) + QLatin1String("Dialog"));
QVERIFY(dialog->testAttribute(Qt::WA_QuitOnClose)); QVERIFY(dialog->testAttribute(Qt::WA_QuitOnClose));
QTimer::singleShot(1000, dialog, &QDialog::accept); QTimer::singleShot(1000, dialog.data(), &QDialog::accept);
dialog->exec(); dialog->exec();
QVERIFY(dialog); QVERIFY(dialog);
QCOMPARE(spy.count(), 0); QCOMPARE(spy.count(), 0);