refactor: NotificationPresenter::Create() returns a std::unique_ptr<> (#43794)
This commit is contained in:
parent
855f219301
commit
d100921289
5 changed files with 14 additions and 14 deletions
|
@ -17,8 +17,8 @@
|
|||
namespace electron {
|
||||
|
||||
// static
|
||||
NotificationPresenter* NotificationPresenter::Create() {
|
||||
return new NotificationPresenterMac;
|
||||
std::unique_ptr<NotificationPresenter> NotificationPresenter::Create() {
|
||||
return std::make_unique<NotificationPresenterMac>();
|
||||
}
|
||||
|
||||
CocoaNotification* NotificationPresenterMac::GetNotification(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue