Use smart pointers in a couple places.
This commit is contained in:
parent
80f046c8df
commit
32e0e8a151
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue