diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-08-06 10:45:53 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-08-06 09:06:23 +0000 |
commit | eacd78950282bb835e9b8b4e955b4f93f3c5167f (patch) | |
tree | 9bcd11fec8004affd80febe1ada951ad72bb88f9 /src/plugins/platforms/windows/qwindowsglcontext.h | |
parent | b3574edd2feaf907956e36f8fd0e84d3638d8652 (diff) |
Windows QPA: Fix clang-tidy-warnings about class definitions
- Use ' = default' for trivial constructors/destructors
- Remove unneeded destructors
- replace virtual by override or add override where applicable
- Add Q_DISABLE_COPY
Change-Id: Ic7a61579dbc845769beada4fc79bb5dd310e5e52
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsglcontext.h')
-rw-r--r-- | src/plugins/platforms/windows/qwindowsglcontext.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/plugins/platforms/windows/qwindowsglcontext.h b/src/plugins/platforms/windows/qwindowsglcontext.h index 8c96a8dd0c..199f8112e3 100644 --- a/src/plugins/platforms/windows/qwindowsglcontext.h +++ b/src/plugins/platforms/windows/qwindowsglcontext.h @@ -170,13 +170,15 @@ public: static QOpenGLStaticContext *create(bool softwareRendering = false); static QByteArray getGlString(unsigned int which); - QWindowsOpenGLContext *createContext(QOpenGLContext *context); - void *moduleHandle() const { return opengl32.moduleHandle(); } - QOpenGLContext::OpenGLModuleType moduleType() const { return QOpenGLContext::LibGL; } + QWindowsOpenGLContext *createContext(QOpenGLContext *context) override; + void *moduleHandle() const override { return opengl32.moduleHandle(); } + QOpenGLContext::OpenGLModuleType moduleType() const override + { return QOpenGLContext::LibGL; } // For a regular opengl32.dll report the ThreadedOpenGL capability. // For others, which are likely to be software-only, don't. - bool supportsThreadedOpenGL() const { return !opengl32.moduleIsNotOpengl32(); } + bool supportsThreadedOpenGL() const override + { return !opengl32.moduleIsNotOpengl32(); } const QByteArray vendor; const QByteArray renderer; @@ -198,7 +200,7 @@ class QWindowsGLContext : public QWindowsOpenGLContext { public: explicit QWindowsGLContext(QOpenGLStaticContext *staticContext, QOpenGLContext *context); - ~QWindowsGLContext(); + ~QWindowsGLContext() override; bool isSharing() const override { return m_context->shareHandle(); } bool isValid() const override { return m_renderingContext && !m_lost; } QSurfaceFormat format() const override { return m_obtainedFormat; } |