summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-06-04 14:45:46 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-06-04 15:47:22 +0200
commit5870a1e742b587ee8ee179037e70dd0ced82e6c7 (patch)
tree19f9e49ea4cdffd9642c8c8ed04087407dcd5d08 /examples
parent20f6c67635240865d33a370230a156de0f051d07 (diff)
downloadqtactiveqt-5870a1e742b587ee8ee179037e70dd0ced82e6c7.tar.gz
Introduce nullptr
Apply Fixits by Qt Creator with some amendments. Change-Id: Ia47cee2d55432ddc14635aa593c52d80ab39cc82 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/activeqt/mediaplayer/mediaaxwidget.h2
-rw-r--r--examples/activeqt/menus/menus.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/activeqt/mediaplayer/mediaaxwidget.h b/examples/activeqt/mediaplayer/mediaaxwidget.h
index a57ca05..a6da749 100644
--- a/examples/activeqt/mediaplayer/mediaaxwidget.h
+++ b/examples/activeqt/mediaplayer/mediaaxwidget.h
@@ -59,7 +59,7 @@
class MediaAxWidget : public QAxWidget
{
public:
- MediaAxWidget(QWidget *parent = nullptr, Qt::WindowFlags f = 0)
+ MediaAxWidget(QWidget *parent = nullptr, Qt::WindowFlags f = {})
: QAxWidget(parent, f)
{
}
diff --git a/examples/activeqt/menus/menus.cpp b/examples/activeqt/menus/menus.cpp
index feb3540..18d1a5b 100644
--- a/examples/activeqt/menus/menus.cpp
+++ b/examples/activeqt/menus/menus.cpp
@@ -60,7 +60,7 @@
#include "filesave.xpm"
QMenus::QMenus(QWidget *parent)
- : QMainWindow(parent, 0) // QMainWindow's default flag is WType_TopLevel
+ : QMainWindow(parent, {}) // QMainWindow's default flag is WType_TopLevel
{
QAction *action;