Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2883)

Unified Diff: chrome/browser/ui/app_list/app_list_service_mac.mm

Issue 17769005: Rewrite scoped_ptr<T>(NULL) to use the default ctor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/app_list/app_list_service_mac.mm
diff --git a/chrome/browser/ui/app_list/app_list_service_mac.mm b/chrome/browser/ui/app_list/app_list_service_mac.mm
index f8f0d072786efcc3d93d2ecdad622f6f784edcb2..7501c4a3aa21709d52eabee40f0cdbc420a7165d 100644
--- a/chrome/browser/ui/app_list/app_list_service_mac.mm
+++ b/chrome/browser/ui/app_list/app_list_service_mac.mm
@@ -248,7 +248,7 @@ void AppListServiceMac::CreateAppList(Profile* requested_profile) {
// The Objective C objects might be released at some unknown point in the
// future, so explicitly clear references to C++ objects.
[[window_controller_ appListViewController]
- setDelegate:scoped_ptr<app_list::AppListViewDelegate>(NULL)];
+ setDelegate:scoped_ptr<app_list::AppListViewDelegate>()];
SetProfile(requested_profile);
scoped_ptr<app_list::AppListViewDelegate> delegate(
« no previous file with comments | « chrome/browser/chrome_browser_application_mac.mm ('k') | chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698