diff options
Diffstat (limited to 'examples/activeqt/opengl/glbox.cpp')
-rw-r--r-- | examples/activeqt/opengl/glbox.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/activeqt/opengl/glbox.cpp b/examples/activeqt/opengl/glbox.cpp index e0796cc..6eef79d 100644 --- a/examples/activeqt/opengl/glbox.cpp +++ b/examples/activeqt/opengl/glbox.cpp @@ -225,9 +225,9 @@ class ObjectSafetyImpl : public QAxAggregated, { public: //! [1] //! [2] - explicit ObjectSafetyImpl() {} + explicit ObjectSafetyImpl() = default; - long queryInterface(const QUuid &iid, void **iface) + long queryInterface(const QUuid &iid, void **iface) override { *iface = nullptr; if (iid == IID_IObjectSafety) @@ -243,14 +243,14 @@ public: QAXAGG_IUNKNOWN; //! [3] //! [4] - HRESULT WINAPI GetInterfaceSafetyOptions(REFIID riid, DWORD *pdwSupportedOptions, DWORD *pdwEnabledOptions) + HRESULT WINAPI GetInterfaceSafetyOptions(REFIID riid, DWORD *pdwSupportedOptions, DWORD *pdwEnabledOptions) override { *pdwSupportedOptions = INTERFACESAFE_FOR_UNTRUSTED_DATA | INTERFACESAFE_FOR_UNTRUSTED_CALLER; *pdwEnabledOptions = INTERFACESAFE_FOR_UNTRUSTED_DATA | INTERFACESAFE_FOR_UNTRUSTED_CALLER; return S_OK; } - HRESULT WINAPI SetInterfaceSafetyOptions(REFIID riid, DWORD pdwSupportedOptions, DWORD pdwEnabledOptions) + HRESULT WINAPI SetInterfaceSafetyOptions(REFIID riid, DWORD pdwSupportedOptions, DWORD pdwEnabledOptions) override { return S_OK; } |