Eliminate warning in D3D12MA

warning: 'QueryInterface' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]

Patch originally found in Qt:
aec8398d71/src/3rdparty/D3D12MemoryAllocator/patches/0001-Eliminate-warnings-in-D3D12MA.patch

Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
This commit is contained in:
Laszlo Agocs 2023-01-21 20:07:00 +01:00 committed by Steve Lhomme
parent 2b7c0d4e31
commit f44eefdac6

View File

@ -160,9 +160,9 @@ class D3D12MA_API IUnknownImpl : public IUnknown
{ {
public: public:
virtual ~IUnknownImpl() = default; virtual ~IUnknownImpl() = default;
virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void** ppvObject); HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void** ppvObject) override;
virtual ULONG STDMETHODCALLTYPE AddRef(); ULONG STDMETHODCALLTYPE AddRef() override;
virtual ULONG STDMETHODCALLTYPE Release(); ULONG STDMETHODCALLTYPE Release() override;
protected: protected:
virtual void ReleaseThis() { delete this; } virtual void ReleaseThis() { delete this; }
private: private: