diff --git a/Src/StartMenu/StartMenuDLL/SearchManager.cpp b/Src/StartMenu/StartMenuDLL/SearchManager.cpp index 50144d5..b536d7e 100644 --- a/Src/StartMenu/StartMenuDLL/SearchManager.cpp +++ b/Src/StartMenu/StartMenuDLL/SearchManager.cpp @@ -798,7 +798,7 @@ void CSearchManager::SearchThread( void ) CSession session; if (SUCCEEDED(dataSource.OpenFromInitializationString(L"provider=Search.CollatorDSO.1;EXTENDED PROPERTIES=\"Application=Windows\"")) && SUCCEEDED(session.Open(dataSource))) { - std::list scopeList; + std::vector scopeList; if (searchRequest.bSearchMetroSettings && !m_bMetroSettingsFound) { @@ -1104,7 +1104,7 @@ void CSearchManager::SearchThread( void ) command0.Close(); continue; } - for (std::list::iterator it=scopeList.begin();it!=scopeList.end();++it) + for (auto it=scopeList.begin();it!=scopeList.end();++it) { if (it->roots.empty()) continue; @@ -1122,7 +1122,7 @@ void CSearchManager::SearchThread( void ) else { len+=Strcpy(query+len,_countof(query)-len,L" AND System.Search.Store='FILE' AND System.ItemType!='.settingcontent-ms'"); - for (std::list::iterator it2=scopeList.begin();it2!=it;++it2) + for (auto it2=scopeList.begin();it2!=it;++it2) { if (it2->categoryHash==CATEGORY_METROSETTING) continue; diff --git a/Src/Update/DesktopToasts/DesktopNotificationManagerCompat.cpp b/Src/Update/DesktopToasts/DesktopNotificationManagerCompat.cpp index 0cce330..e537452 100644 --- a/Src/Update/DesktopToasts/DesktopNotificationManagerCompat.cpp +++ b/Src/Update/DesktopToasts/DesktopNotificationManagerCompat.cpp @@ -168,7 +168,7 @@ namespace DesktopNotificationManagerCompat ComPtr nativeHistory; RETURN_IF_FAILED(toastStatics2->get_History(&nativeHistory)); - *history = std::unique_ptr(new DesktopNotificationHistoryCompat(s_aumid.c_str(), nativeHistory)); + *history = std::make_unique(s_aumid.c_str(), nativeHistory); return S_OK; }