diff --git a/Windows/CaptureDevice.h b/Windows/CaptureDevice.h index 64ef4926a6..d457702afe 100644 --- a/Windows/CaptureDevice.h +++ b/Windows/CaptureDevice.h @@ -113,7 +113,7 @@ template void SafeRelease(T **ppT) { class WindowsCaptureDevice; -class ReaderCallback : public IMFSourceReaderCallback { +class ReaderCallback final : public IMFSourceReaderCallback { public: ReaderCallback(WindowsCaptureDevice *device); ~ReaderCallback(); diff --git a/Windows/W32Util/PropertySheet.h b/Windows/W32Util/PropertySheet.h index 53ea0c5b8b..29e7814e8c 100644 --- a/Windows/W32Util/PropertySheet.h +++ b/Windows/W32Util/PropertySheet.h @@ -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); }; - - - -} \ No newline at end of file +} diff --git a/Windows/WASAPIStream.cpp b/Windows/WASAPIStream.cpp index 2bf597761d..347f5e0560 100644 --- a/Windows/WASAPIStream.cpp +++ b/Windows/WASAPIStream.cpp @@ -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() { }