Add override keyword to QPlatformSurface derived classes

Change-Id: I9ce58fb48fd41f4fc340188c1df358d9ef215c3f
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
This commit is contained in:
Jesus Fernandez 2017-08-04 17:06:30 +02:00 committed by Jesus Fernandez
parent 22998e64d9
commit a6c4d54eaf
2 changed files with 4 additions and 4 deletions

View File

@ -64,13 +64,13 @@ class Q_GUI_EXPORT QPlatformOffscreenSurface : public QPlatformSurface
Q_DECLARE_PRIVATE(QPlatformOffscreenSurface)
public:
explicit QPlatformOffscreenSurface(QOffscreenSurface *offscreenSurface);
virtual ~QPlatformOffscreenSurface();
~QPlatformOffscreenSurface() override;
QOffscreenSurface *offscreenSurface() const;
QPlatformScreen *screen() const;
virtual QSurfaceFormat format() const Q_DECL_OVERRIDE;
virtual QSurfaceFormat format() const override;
virtual bool isValid() const;
protected:

View File

@ -72,7 +72,7 @@ class Q_GUI_EXPORT QPlatformWindow : public QPlatformSurface
Q_DECLARE_PRIVATE(QPlatformWindow)
public:
explicit QPlatformWindow(QWindow *window);
virtual ~QPlatformWindow();
~QPlatformWindow() override;
virtual void initialize();
@ -81,7 +81,7 @@ public:
QPlatformScreen *screen() const;
virtual QSurfaceFormat format() const Q_DECL_OVERRIDE;
virtual QSurfaceFormat format() const override;
virtual void setGeometry(const QRect &rect);
virtual QRect geometry() const;