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

Unified Diff: net/sdch/sdch_owner.cc

Issue 1303213002: Returning const ref instead of const value in DictionaryPreferenceIterator::url (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/sdch/sdch_owner.cc
diff --git a/net/sdch/sdch_owner.cc b/net/sdch/sdch_owner.cc
index 7f5f1af866aea558aa74c357f01ed22378afd96f..ca9b5a77fab4fe3bd870fe86b797c0baf31db8fe 100644
--- a/net/sdch/sdch_owner.cc
+++ b/net/sdch/sdch_owner.cc
@@ -123,7 +123,7 @@ class DictionaryPreferenceIterator {
void Advance();
const std::string& server_hash() const { return server_hash_; }
- const GURL url() const { return url_; }
+ const GURL& url() const { return url_; }
base::Time last_used() const { return last_used_; }
int use_count() const { return use_count_; }
int size() const { return size_; }
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698