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:
virtual ~IUnknownImpl() = default;
virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void** ppvObject);
virtual ULONG STDMETHODCALLTYPE AddRef();
virtual ULONG STDMETHODCALLTYPE Release();
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void** ppvObject) override;
ULONG STDMETHODCALLTYPE AddRef() override;
ULONG STDMETHODCALLTYPE Release() override;
protected:
virtual void ReleaseThis() { delete this; }
private: