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

Unified Diff: Source/core/loader/LinkHeader.h

Issue 1285383002: Return const by ref instead of const by value (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.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: Source/core/loader/LinkHeader.h
diff --git a/Source/core/loader/LinkHeader.h b/Source/core/loader/LinkHeader.h
index b93ffd816b90c4fdaba630cc4b04167c03640fe6..af14abf0e417ff36d1b8fbb8ad73d4c29061eba1 100644
--- a/Source/core/loader/LinkHeader.h
+++ b/Source/core/loader/LinkHeader.h
@@ -16,8 +16,8 @@ public:
template <typename CharType>
LinkHeader(CharType*& position, CharType* end);
- const String url() const { return m_url; }
- const String rel() const { return m_rel; }
+ const String& url() const { return m_url; }
+ const String& rel() const { return m_rel; }
CrossOriginAttributeValue crossOrigin() const { return m_crossOrigin; }
bool valid() const { return m_isValid; }
« 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