diff --git a/pbom/ui/taskwindow.cpp b/pbom/ui/taskwindow.cpp index d598831..d9e4d1f 100644 --- a/pbom/ui/taskwindow.cpp +++ b/pbom/ui/taskwindow.cpp @@ -16,7 +16,7 @@ namespace pboman3::ui { log_(nullptr), doneText_("Done") { ui_->setupUi(this); -// taskbar_ = QSharedPointer(new TaskbarIndicator(winId())); + taskbar_ = QSharedPointer(new TaskbarIndicator(winId())); setupConnections(); } diff --git a/pbom/ui/taskwindow.h b/pbom/ui/taskwindow.h index 0c8e947..d6332ab 100644 --- a/pbom/ui/taskwindow.h +++ b/pbom/ui/taskwindow.h @@ -33,7 +33,7 @@ namespace pboman3::ui { QHash progressBars_; QPlainTextEdit* log_; QString doneText_; -// QSharedPointer taskbar_; + QSharedPointer taskbar_; void setupConnections(); diff --git a/pbom/ui/win32/win32taskbarindicator.cpp b/pbom/ui/win32/win32taskbarindicator.cpp index 07064cb..5d4ff0c 100644 --- a/pbom/ui/win32/win32taskbarindicator.cpp +++ b/pbom/ui/win32/win32taskbarindicator.cpp @@ -1,14 +1,13 @@ #include "win32taskbarindicator.h" -#include namespace pboman3::ui { Win32TaskbarIndicator::Win32TaskbarIndicator(WId windowId) : window_(reinterpret_cast(windowId)), // NOLINT(performance-no-int-to-ptr) isErr_(false) { - const HRESULT hr = CoCreateInstance(CLSID_TaskbarList, NULL, CLSCTX_INPROC_SERVER, IID_ITaskbarList3, + const HRESULT hr = CoCreateInstance(CLSID_TaskbarList, nullptr, CLSCTX_INPROC_SERVER, IID_ITaskbarList3, reinterpret_cast(&progress_)); if (!SUCCEEDED(hr)) - progress_ = 0; + progress_ = nullptr; } Win32TaskbarIndicator::~Win32TaskbarIndicator() {