mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Use smart pointers in a couple places.
This commit is contained in:
@@ -156,7 +156,7 @@ void AtomBrowserMainParts::PreMainMessageLoopRun() {
|
||||
#if !defined(OS_MACOSX)
|
||||
// The corresponding call in macOS is in AtomApplicationDelegate.
|
||||
Browser::Get()->WillFinishLaunching();
|
||||
base::DictionaryValue* empty_info = new base::DictionaryValue();
|
||||
std::unique_ptr<base::DictionaryValue> empty_info(new base::DictionaryValue);
|
||||
Browser::Get()->DidFinishLaunching(*empty_info);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
atom::NSDictionaryToDictionaryValue(user_notification.userInfo);
|
||||
atom::Browser::Get()->DidFinishLaunching(*launch_info);
|
||||
} else {
|
||||
base::DictionaryValue* launch_info = new base::DictionaryValue();
|
||||
atom::Browser::Get()->DidFinishLaunching(*launch_info);
|
||||
std::unique_ptr<base::DictionaryValue> empty_info(new base::DictionaryValue);
|
||||
atom::Browser::Get()->DidFinishLaunching(*empty_info);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user