diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-07-14 00:50:29 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2021-07-17 02:23:17 +0200 |
commit | 0e7212460ba7fab19a47f960b09a011973a7c475 (patch) | |
tree | 6801ba8a3e6e43c1a924411b965248e6f7bc2f8a /src/gui/kernel/qwindow.cpp | |
parent | 8ebd4a1da820cff0e499258f79a3fc139ea06b77 (diff) |
Use member function instead of template function to resolve native interface
The use of a freestanding function is not needed now that the name
doesn't alias the nativeInterface accessor function, and was just
adding complexity to the machinery.
People not familiar with the code will have an easier time following
the flow through the helper member function, and we no longer need
to declare our own export macros.
Pick-to: 6.2
Change-Id: I17530b7e89939cfc19ab8ffaa076b7129ae02dcf
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/gui/kernel/qwindow.cpp')
-rw-r--r-- | src/gui/kernel/qwindow.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/kernel/qwindow.cpp b/src/gui/kernel/qwindow.cpp index 61c201559a..7f6e5044cb 100644 --- a/src/gui/kernel/qwindow.cpp +++ b/src/gui/kernel/qwindow.cpp @@ -3004,12 +3004,11 @@ bool QWindowPrivate::applyCursor() } #endif // QT_NO_CURSOR -template <> -Q_NATIVE_INTERFACE_EXPORT void *QNativeInterface::Private::resolveInterface(const QWindow *that, const char *name, int revision) +void *QWindow::resolveInterface(const char *name, int revision) const { using namespace QNativeInterface::Private; - auto *platformWindow = that->handle(); + auto *platformWindow = handle(); Q_UNUSED(platformWindow); Q_UNUSED(name); Q_UNUSED(revision); |