From 5180f32c5abe01acd65cde68c2c16aedda4028ec Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Sun, 16 Nov 2014 13:09:01 +0100 Subject: Add Q_DECL_OVERRIDE in the src subdirectory Done automatically with clang-modernize on linux (But does not add Q_DECL_OVERRIDE to the function that are marked as inline because it a compilation error with MSVC2010) Change-Id: I2196ee26e3e6fe20816834ecea5ea389eeab3171 Reviewed-by: Thiago Macieira --- src/opengl/qglpaintdevice_p.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/opengl/qglpaintdevice_p.h') diff --git a/src/opengl/qglpaintdevice_p.h b/src/opengl/qglpaintdevice_p.h index f0855317ea..624cfacd89 100644 --- a/src/opengl/qglpaintdevice_p.h +++ b/src/opengl/qglpaintdevice_p.h @@ -58,7 +58,7 @@ public: QGLPaintDevice(); virtual ~QGLPaintDevice(); - int devType() const {return QInternal::OpenGL;} + int devType() const Q_DECL_OVERRIDE {return QInternal::OpenGL;} virtual void beginPaint(); virtual void ensureActiveTarget(); @@ -74,7 +74,7 @@ public: static QGLPaintDevice* getDevice(QPaintDevice*); protected: - int metric(QPaintDevice::PaintDeviceMetric metric) const; + int metric(QPaintDevice::PaintDeviceMetric metric) const Q_DECL_OVERRIDE; GLuint m_previousFBO; GLuint m_thisFBO; }; @@ -87,13 +87,13 @@ class Q_OPENGL_EXPORT QGLWidgetGLPaintDevice : public QGLPaintDevice public: QGLWidgetGLPaintDevice(); - virtual QPaintEngine* paintEngine() const; + virtual QPaintEngine* paintEngine() const Q_DECL_OVERRIDE; // QGLWidgets need to do swapBufers in endPaint: - virtual void beginPaint(); - virtual void endPaint(); - virtual QSize size() const; - virtual QGLContext* context() const; + virtual void beginPaint() Q_DECL_OVERRIDE; + virtual void endPaint() Q_DECL_OVERRIDE; + virtual QSize size() const Q_DECL_OVERRIDE; + virtual QGLContext* context() const Q_DECL_OVERRIDE; void setWidget(QGLWidget*); -- cgit v1.2.3