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

Unified Diff: ui/message_center/views/notification_view.cc

Issue 2691393002: Fix auto raw pointer deduction on linux (Closed)
Patch Set: rebase Created 3 years, 10 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
« no previous file with comments | « ui/message_center/views/message_list_view_unittest.cc ('k') | ui/views/controls/menu/menu_item_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/notification_view.cc
diff --git a/ui/message_center/views/notification_view.cc b/ui/message_center/views/notification_view.cc
index c7bdce476419936b85bc8b8daeab80f58cf750ec..7d880e7a04d31838c70a2cf3d64ef06d2bfaca79 100644
--- a/ui/message_center/views/notification_view.cc
+++ b/ui/message_center/views/notification_view.cc
@@ -542,7 +542,7 @@ void NotificationView::CreateOrUpdateProgressBarView(
void NotificationView::CreateOrUpdateListItemViews(
const Notification& notification) {
- for (auto item_view : item_views_)
+ for (auto* item_view : item_views_)
delete item_view;
item_views_.clear();
@@ -623,10 +623,10 @@ void NotificationView::CreateOrUpdateActionButtonViews(
bool new_buttons = action_buttons_.size() != buttons.size();
if (new_buttons || buttons.size() == 0) {
- for (auto item : separators_)
+ for (auto* item : separators_)
delete item;
separators_.clear();
- for (auto item : action_buttons_)
+ for (auto* item : action_buttons_)
delete item;
action_buttons_.clear();
}
« no previous file with comments | « ui/message_center/views/message_list_view_unittest.cc ('k') | ui/views/controls/menu/menu_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698