diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-06-30 22:11:15 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-07-06 11:32:44 +0000 |
commit | db5e672acc29858a59e8e14768cff2767306344e (patch) | |
tree | 73da54611708b5301dd82502308811ee665d075e /src/opengl/qglpixelbuffer.h | |
parent | 861dca57d72260049b21ccace2e702703ec342b8 (diff) |
QtOpenGL: Use Q_NULLPTR instead of 0 in all public headers
This is in preparation of adding -Wzero-as-null-pointer-constant (or similar)
to the headers check.
Task-number: QTBUG-45291
Change-Id: I16c93bd36c242a6d402cf7622820e91eac782772
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/opengl/qglpixelbuffer.h')
-rw-r--r-- | src/opengl/qglpixelbuffer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opengl/qglpixelbuffer.h b/src/opengl/qglpixelbuffer.h index 0f0110da96..2aad76b002 100644 --- a/src/opengl/qglpixelbuffer.h +++ b/src/opengl/qglpixelbuffer.h @@ -47,9 +47,9 @@ class Q_OPENGL_EXPORT QGLPixelBuffer : public QPaintDevice Q_DECLARE_PRIVATE(QGLPixelBuffer) public: QGLPixelBuffer(const QSize &size, const QGLFormat &format = QGLFormat::defaultFormat(), - QGLWidget *shareWidget = 0); + QGLWidget *shareWidget = Q_NULLPTR); QGLPixelBuffer(int width, int height, const QGLFormat &format = QGLFormat::defaultFormat(), - QGLWidget *shareWidget = 0); + QGLWidget *shareWidget = Q_NULLPTR); virtual ~QGLPixelBuffer(); bool isValid() const; |