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

Unified Diff: components/mus/ws/modal_window_controller.cc

Issue 2110663002: components: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: components/mus/ws/modal_window_controller.cc
diff --git a/components/mus/ws/modal_window_controller.cc b/components/mus/ws/modal_window_controller.cc
index 89ec02e37207a52ab8aa194bfd78a035cb4fd6d1..b081a472571a948af9551b26cfa9dfc05f0a5476 100644
--- a/components/mus/ws/modal_window_controller.cc
+++ b/components/mus/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;
}

Powered by Google App Engine
This is Rietveld 408576698