From eacd78950282bb835e9b8b4e955b4f93f3c5167f Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 6 Aug 2018 10:45:53 +0200 Subject: 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 --- src/plugins/platforms/windows/qwindowsinputcontext.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/platforms/windows/qwindowsinputcontext.h') diff --git a/src/plugins/platforms/windows/qwindowsinputcontext.h b/src/plugins/platforms/windows/qwindowsinputcontext.h index 8668efbb15..a47585c29e 100644 --- a/src/plugins/platforms/windows/qwindowsinputcontext.h +++ b/src/plugins/platforms/windows/qwindowsinputcontext.h @@ -53,6 +53,7 @@ class QWindowsWindow; class QWindowsInputContext : public QPlatformInputContext { + Q_DISABLE_COPY(QWindowsInputContext) Q_OBJECT struct CompositionContext @@ -65,7 +66,7 @@ class QWindowsInputContext : public QPlatformInputContext }; public: explicit QWindowsInputContext(); - ~QWindowsInputContext(); + ~QWindowsInputContext() override; static void setWindowsImeEnabled(QWindowsWindow *platformWindow, bool enabled); -- cgit v1.2.3