mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
chore: use std::make_unique/base::MakeRefCounted when possible (#29510)
This commit is contained in:
@@ -52,8 +52,7 @@ NotificationPresenter* NotificationPresenter::Create() {
|
||||
return new NotificationPresenterWin7;
|
||||
if (!WindowsToastNotification::Initialize())
|
||||
return nullptr;
|
||||
std::unique_ptr<NotificationPresenterWin> presenter(
|
||||
new NotificationPresenterWin);
|
||||
auto presenter = std::make_unique<NotificationPresenterWin>();
|
||||
if (!presenter->Init())
|
||||
return nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user