summaryrefslogtreecommitdiff
path: root/zen/notify_removal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zen/notify_removal.cpp')
-rw-r--r--zen/notify_removal.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/zen/notify_removal.cpp b/zen/notify_removal.cpp
index 45a39c48..639264a6 100644
--- a/zen/notify_removal.cpp
+++ b/zen/notify_removal.cpp
@@ -169,7 +169,7 @@ private:
Pimpl (const Pimpl&) = delete;
Pimpl& operator=(const Pimpl&) = delete;
- virtual void onMessage(UINT message, WPARAM wParam, LPARAM lParam) //throw()!
+ void onMessage(UINT message, WPARAM wParam, LPARAM lParam) override //throw()!
{
//DBT_DEVICEQUERYREMOVE example: http://msdn.microsoft.com/en-us/library/aa363427(v=VS.85).aspx
if (message == WM_DEVICECHANGE)
@@ -205,10 +205,7 @@ private:
//####################################################################################################
-NotifyRequestDeviceRemoval::NotifyRequestDeviceRemoval(HANDLE hDir)
-{
- pimpl.reset(new Pimpl(*this, hDir));
-}
+NotifyRequestDeviceRemoval::NotifyRequestDeviceRemoval(HANDLE hDir) : pimpl(zen::make_unique<Pimpl>(*this, hDir)) {}
NotifyRequestDeviceRemoval::~NotifyRequestDeviceRemoval() {} //make sure ~unique_ptr() works with complete type
bgstack15