Fix warning about converting false to pointer value.

Change-Id: I70c324e6fcfd2bba3ab44837c5ce2c007de8896f
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
Friedemann Kleint 2012-02-20 15:44:21 +01:00 committed by Qt by Nokia
parent 846f2859b5
commit ed9b608684

View File

@ -2064,7 +2064,7 @@ class NoQuitOnHideWidget : public QWidget
{
Q_OBJECT
public:
NoQuitOnHideWidget(QWidget *parent = 0)
explicit NoQuitOnHideWidget(QWidget *parent = 0)
: QWidget(parent)
{
QTimer::singleShot(0, this, SLOT(hide()));
@ -2081,7 +2081,7 @@ void tst_QApplication::noQuitOnHide()
{
int argc = 0;
QApplication app(argc, 0);
QWidget *window1 = new NoQuitOnHideWidget(false);
QWidget *window1 = new NoQuitOnHideWidget;
window1->show();
QCOMPARE(app.exec(), 1);
}