Replacing 'scopeList' contiguous placement of elements in memory more efficient and std::make_unique c++17

Signed-off-by: germanaizek <GermanAizek@yandex.ru>
This commit is contained in:
Let's All Love Lain
2022-05-12 16:40:43 +03:00
committed by ge0rdi
parent a20215d9da
commit 47cc2b2304
2 changed files with 4 additions and 4 deletions
@@ -168,7 +168,7 @@ namespace DesktopNotificationManagerCompat
ComPtr<IToastNotificationHistory> nativeHistory;
RETURN_IF_FAILED(toastStatics2->get_History(&nativeHistory));
*history = std::unique_ptr<DesktopNotificationHistoryCompat>(new DesktopNotificationHistoryCompat(s_aumid.c_str(), nativeHistory));
*history = std::make_unique<DesktopNotificationHistoryCompat>(s_aumid.c_str(), nativeHistory);
return S_OK;
}