Windows: Prevent some virtual dtor warnings.

This commit is contained in:
Unknown W. Brackets committed 2021-02-15 11:59:45 -08:00
1 parent e85a8b0f5b
commit a1b9eb3cc5
3 files changed
+5 -9

No files matched your search

+1 -1
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();
+3 -7
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);
};
}
}
+1 -1
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() {
}