Skip to content

Commit f44eefd

Browse files
alpqrrobUx4
authored andcommitted
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>
1 parent 2b7c0d4 commit f44eefd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

include/D3D12MemAlloc.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ class D3D12MA_API IUnknownImpl : public IUnknown
160160
{
161161
public:
162162
virtual ~IUnknownImpl() = default;
163-
virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void** ppvObject);
164-
virtual ULONG STDMETHODCALLTYPE AddRef();
165-
virtual ULONG STDMETHODCALLTYPE Release();
163+
HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void** ppvObject) override;
164+
ULONG STDMETHODCALLTYPE AddRef() override;
165+
ULONG STDMETHODCALLTYPE Release() override;
166166
protected:
167167
virtual void ReleaseThis() { delete this; }
168168
private:

0 commit comments

Comments
 (0)