Resolve some Clang warnings on Windows

This commit is contained in:
Maarten Bent 2022-12-23 21:53:47 +01:00
parent 82eb445722
commit 1ace6a6aad
No known key found for this signature in database
GPG key ID: 58AAEE3F4A4FD070
2 changed files with 3 additions and 9 deletions

View file

@ -721,7 +721,7 @@ public:
// IUnknown
wxSTDMETHODIMP QueryInterface(REFIID iid, void** ppv)
wxSTDMETHODIMP QueryInterface(REFIID iid, void** ppv) override
{
if ( iid == IID_IUnknown || iid == IID_IFileDialogEvents )
{
@ -749,8 +749,8 @@ public:
}
// Dummy implementations because we're not really ref-counted.
STDMETHODIMP_(ULONG) AddRef() { return 1; }
STDMETHODIMP_(ULONG) Release() { return 1; }
STDMETHODIMP_(ULONG) AddRef() override { return 1; }
STDMETHODIMP_(ULONG) Release() override { return 1; }
// IFileDialogEvents

View file

@ -123,12 +123,6 @@ private:
int m_modeOld;
};
inline bool IsGreaterThanStdSize(const wxBitmap& bmp, const wxWindow* win)
{
return bmp.GetWidth() > wxGetSystemMetrics(SM_CXMENUCHECK, win) ||
bmp.GetHeight() > wxGetSystemMetrics(SM_CYMENUCHECK, win);
}
} // anonymous namespace
// ============================================================================