Windows: Prevent some virtual dtor warnings.

This commit is contained in:
Unknown W. Brackets 2021-02-15 10:50:17 -08:00
parent e85a8b0f5b
commit a1b9eb3cc5
3 changed files with 5 additions and 9 deletions

View file

@ -113,7 +113,7 @@ template <class T> void SafeRelease(T **ppT) {
class WindowsCaptureDevice;
class ReaderCallback : public IMFSourceReaderCallback {
class ReaderCallback final : public IMFSourceReaderCallback {
public:
ReaderCallback(WindowsCaptureDevice *device);
~ReaderCallback();

View file

@ -57,9 +57,8 @@ namespace W32Util
LPCTSTR header;
HFONT hTitleFont;
HICON icon;
struct Page
{
Page(Tab *_tab, LPCTSTR _resource, LPCTSTR _title, LPCTSTR _subtitle = 0)
struct Page final {
Page(Tab *_tab, LPCTSTR _resource, LPCTSTR _title, LPCTSTR _subtitle = nullptr)
: tab(_tab), resource(_resource), title(_title), hdrSubTitle(_subtitle) {}
Tab *tab;
LPCTSTR resource;
@ -78,7 +77,4 @@ namespace W32Util
HFONT GetTitleFont() {return hTitleFont;}
static int CALLBACK Callback(HWND hwndDlg, UINT uMsg, LPARAM lParam);
};
}
}

View file

@ -31,7 +31,7 @@ const IID IID_IAudioRenderClient = __uuidof(IAudioRenderClient);
if ((punk) != NULL) \
{ (punk)->Release(); (punk) = NULL; }
class CMMNotificationClient : public IMMNotificationClient {
class CMMNotificationClient final : public IMMNotificationClient {
public:
CMMNotificationClient() {
}