From 564b59d903683b14c75b72a3e93367717f201def Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Wed, 7 Oct 2020 13:05:48 +0200 Subject: Another round of replacing 0 with nullptr This time based on grepping to also include documentation, tests and examples previously missed by the automatic tool. Change-Id: Ied1703f4bcc470fbc275f759ed5b7c588a5c4e9f Reviewed-by: Qt CI Bot Reviewed-by: Friedemann Kleint --- tests/manual/windowmodality/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/manual/windowmodality') diff --git a/tests/manual/windowmodality/main.cpp b/tests/manual/windowmodality/main.cpp index 46693cdddd..3b79b5c798 100644 --- a/tests/manual/windowmodality/main.cpp +++ b/tests/manual/windowmodality/main.cpp @@ -51,7 +51,7 @@ class CustomDialog : public QDialog, public Ui::Dialog { Q_OBJECT public: - CustomDialog(QWidget *parent = 0) + CustomDialog(QWidget *parent = nullptr) : QDialog(parent) { setupUi(this); @@ -101,7 +101,7 @@ private slots: private: void newDialog(DialogType dialogType, Qt::WindowModality windowModality) { - QWidget *parent = 0; + QWidget *parent = nullptr; if (useThisAsParentCheckBox->isChecked()) parent = this; else if (createSiblingDialogCheckBox->isChecked()) @@ -166,7 +166,7 @@ class Widget : public QWidget, public Ui::Widget { Q_OBJECT public: - Widget(QWidget *parent = 0) + Widget(QWidget *parent = nullptr) : QWidget(parent) { setupUi(this); @@ -218,7 +218,7 @@ private slots: private: void newDialog(DialogType dialogType, Qt::WindowModality windowModality) { - QWidget *parent = 0; + QWidget *parent = nullptr; if (useThisAsParentCheckBox->isChecked()) parent = this; -- cgit v1.2.3