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

Unified Diff: Source/modules/fetch/FetchRequestData.h

Issue 1289213002: Return const by ref instead of const by Value in FetchRequestData::method (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/modules/fetch/FetchRequestData.h
diff --git a/Source/modules/fetch/FetchRequestData.h b/Source/modules/fetch/FetchRequestData.h
index f9accec1f42ac8aa7f2d6e46e241bb3c90a07d14..38697526f32f67b7d1f20ccf262719a1ea09b1e3 100644
--- a/Source/modules/fetch/FetchRequestData.h
+++ b/Source/modules/fetch/FetchRequestData.h
@@ -64,7 +64,7 @@ public:
~FetchRequestData();
void setMethod(AtomicString method) { m_method = method; }
- const AtomicString method() const { return m_method; }
+ const AtomicString& method() const { return m_method; }
void setURL(const KURL& url) { m_url = url; }
const KURL& url() const { return m_url; }
bool unsafeRequestFlag() const { return m_unsafeRequestFlag; }
« 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