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

Unified Diff: content/browser/frame_host/navigation_entry_impl.cc

Issue 2101943004: content: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase/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
Index: content/browser/frame_host/navigation_entry_impl.cc
diff --git a/content/browser/frame_host/navigation_entry_impl.cc b/content/browser/frame_host/navigation_entry_impl.cc
index 6baa2a7fbd5ddd817b9ecfd74524e70a65e96eac..cecfb105f0f79b29e7edbed41b84998da1252d6d 100644
--- a/content/browser/frame_host/navigation_entry_impl.cc
+++ b/content/browser/frame_host/navigation_entry_impl.cc
@@ -131,7 +131,7 @@ NavigationEntryImpl::TreeNode::CloneAndReplace(
new NavigationEntryImpl::TreeNode(frame_entry->Clone()));
// Recursively clone the children.
- for (auto& child : children) {
+ for (auto* child : children) {
copy->children.push_back(
child->CloneAndReplace(frame_tree_node, frame_navigation_entry, false));
}
@@ -776,7 +776,7 @@ NavigationEntryImpl::TreeNode* NavigationEntryImpl::FindFrameEntry(
return node;
// Enqueue any children and keep looking.
- for (auto& child : node->children)
+ for (auto* child : node->children)
work_queue.push(child);
}
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698