commit | f44eefdac61a4122a4aea408a41286edc01d9442 | [log] [tgz] |
---|---|---|
author | Laszlo Agocs <laszlo.agocs@qt.io> | Sat Jan 21 20:07:00 2023 +0100 |
committer | Steve Lhomme <robux4@ycbcr.xyz> | Tue Sep 03 12:56:47 2024 +0200 |
tree | 4669aecd5a826bccb5075561943bd4b2f12f81a9 | |
parent | 2b7c0d4e31dac5d893722573b0b2654270f907df [diff] |
Eliminate warning in D3D12MA warning: 'QueryInterface' overrides a member function but is not marked 'override' [-Winconsistent-missing-override] Patch originally found in Qt: https://github.com/qt/qtbase/blob/aec8398d71d351e956683a695af51317fe65097e/src/3rdparty/D3D12MemoryAllocator/patches/0001-Eliminate-warnings-in-D3D12MA.patch Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
diff --git a/include/D3D12MemAlloc.h b/include/D3D12MemAlloc.h index a12034f..ab5e01b 100644 --- a/include/D3D12MemAlloc.h +++ b/include/D3D12MemAlloc.h
@@ -160,9 +160,9 @@ { 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: