diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-07-01 14:47:33 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-07-04 06:03:52 +0000 |
commit | 9cb68cdea0fbf646315d972d8926b8d55c87cb02 (patch) | |
tree | 70eedbad84ba4298525c73d6513231323ccef05a /src/opengl | |
parent | c3addaca1743325f1bd75a24a84e56fcb6d80694 (diff) |
Make QWidget *=0, Qt::WindowFlags f=0 functions use Q_NULLPTR
This is in preparation of adding -Wzero-as-null-pointer-constant (or similar)
to the headers check.
Task-number: QTBUG-45291
Change-Id: If9721e8b1ab3b4cd6e3e366362cae314f451bbed
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/opengl')
-rw-r--r-- | src/opengl/qgl.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/opengl/qgl.h b/src/opengl/qgl.h index 8c55cffbb3..63804cc28d 100644 --- a/src/opengl/qgl.h +++ b/src/opengl/qgl.h @@ -356,12 +356,12 @@ class Q_OPENGL_EXPORT QGLWidget : public QWidget Q_OBJECT Q_DECLARE_PRIVATE(QGLWidget) public: - explicit QGLWidget(QWidget* parent=0, - const QGLWidget* shareWidget = 0, Qt::WindowFlags f=0); - explicit QGLWidget(QGLContext *context, QWidget* parent=0, - const QGLWidget* shareWidget = 0, Qt::WindowFlags f=0); - explicit QGLWidget(const QGLFormat& format, QWidget* parent=0, - const QGLWidget* shareWidget = 0, Qt::WindowFlags f=0); + explicit QGLWidget(QWidget* parent=Q_NULLPTR, + const QGLWidget* shareWidget = Q_NULLPTR, Qt::WindowFlags f=Qt::WindowFlags()); + explicit QGLWidget(QGLContext *context, QWidget* parent=Q_NULLPTR, + const QGLWidget* shareWidget = Q_NULLPTR, Qt::WindowFlags f=Qt::WindowFlags()); + explicit QGLWidget(const QGLFormat& format, QWidget* parent=Q_NULLPTR, + const QGLWidget* shareWidget = Q_NULLPTR, Qt::WindowFlags f=Qt::WindowFlags()); ~QGLWidget(); void qglColor(const QColor& c) const; @@ -442,9 +442,9 @@ protected: QGLWidget(QGLWidgetPrivate &dd, const QGLFormat &format = QGLFormat(), - QWidget *parent = 0, - const QGLWidget* shareWidget = 0, - Qt::WindowFlags f = 0); + QWidget *parent = Q_NULLPTR, + const QGLWidget* shareWidget = Q_NULLPTR, + Qt::WindowFlags f = Qt::WindowFlags()); private: Q_DISABLE_COPY(QGLWidget) |