summaryrefslogtreecommitdiffstats
path: root/src/corelib/platform
diff options
context:
space:
mode:
authorPavel Dubsky <pavel.dubsky@qt.io>2024-04-11 18:48:07 +0200
committerPavel Dubsky <pavel.dubsky@qt.io>2024-04-12 12:31:17 +0000
commita204417600c3cb84d287825afb0d433a8189f657 (patch)
tree56314a8ff644d6b14eb3a6cac391a49609fc9ee6 /src/corelib/platform
parent30ac79464c7c60499b214cb1a9bb15b8f5d06625 (diff)
Unseal overridden methods on QComObject
There are cases where overriding AddRef, Release, and/or QueryInterface and adding additional functionality besides commonly required might be beneficial. Change-Id: I4407960164edf0441d1d054356f74abba6becbe7 Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
Diffstat (limited to 'src/corelib/platform')
-rw-r--r--src/corelib/platform/windows/qcomobject_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/platform/windows/qcomobject_p.h b/src/corelib/platform/windows/qcomobject_p.h
index 5d8d407f79..8f27a18ff6 100644
--- a/src/corelib/platform/windows/qcomobject_p.h
+++ b/src/corelib/platform/windows/qcomobject_p.h
@@ -65,7 +65,7 @@ template <typename TFirstInterface, typename... TAdditionalInterfaces>
class QComObject : public TFirstInterface, public TAdditionalInterfaces...
{
public:
- STDMETHODIMP QueryInterface(REFIID riid, void **ppvObject) final
+ STDMETHODIMP QueryInterface(REFIID riid, void **ppvObject) override
{
if (!ppvObject)
return E_POINTER;
@@ -80,9 +80,9 @@ public:
return tryQueryInterface<TFirstInterface, TAdditionalInterfaces...>(riid, ppvObject);
}
- STDMETHODIMP_(ULONG) AddRef() final { return ++m_referenceCount; }
+ STDMETHODIMP_(ULONG) AddRef() override { return ++m_referenceCount; }
- STDMETHODIMP_(ULONG) Release() final
+ STDMETHODIMP_(ULONG) Release() override
{
const LONG referenceCount = --m_referenceCount;
if (referenceCount == 0)