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

Unified Diff: services/ui/ws/modal_window_controller.cc

Issue 2175243004: services/{ui,shell}: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 4 years, 5 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 | « services/ui/ws/frame_generator.cc ('k') | services/ui/ws/window_tree.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/modal_window_controller.cc
diff --git a/services/ui/ws/modal_window_controller.cc b/services/ui/ws/modal_window_controller.cc
index 44d7891b76f432b89a11ab9f148a852e79c46182..07c2e11ab9a22d91c1172e1f9d01ad6bc5b03d18 100644
--- a/services/ui/ws/modal_window_controller.cc
+++ b/services/ui/ws/modal_window_controller.cc
@@ -16,7 +16,7 @@ namespace {
const ServerWindow* GetModalChildForWindowAncestor(const ServerWindow* window) {
for (const ServerWindow* ancestor = window; ancestor;
ancestor = ancestor->parent()) {
- for (const auto& transient_child : ancestor->transient_children()) {
+ for (auto* transient_child : ancestor->transient_children()) {
if (transient_child->is_modal() && transient_child->IsDrawn())
return transient_child;
}
« no previous file with comments | « services/ui/ws/frame_generator.cc ('k') | services/ui/ws/window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698