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

Unified Diff: content/renderer/history_entry.cc

Issue 1354363002: Cleanup: Pass std::string as const reference from content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/renderer/history_entry.cc
diff --git a/content/renderer/history_entry.cc b/content/renderer/history_entry.cc
index 24d6aea412fd68088379da83f235a1d24513adfb..8a2d20de95bab7d222c077ba70c017a508ee583c 100644
--- a/content/renderer/history_entry.cc
+++ b/content/renderer/history_entry.cc
@@ -117,7 +117,7 @@ HistoryEntry::HistoryNode::~HistoryNode() {
if (!entry_ || item_.isNull())
return;
- for (std::string name : unique_names_) {
+ for (const std::string& name : unique_names_) {
if (entry_->unique_names_to_items_[name] == this)
entry_->unique_names_to_items_.erase(name);
}
« no previous file with comments | « content/public/test/content_browser_test_utils.cc ('k') | content/renderer/media/rtc_peer_connection_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698