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

Unified Diff: Source/wtf/text/StringOperators.h

Issue 99733002: Update HTTPHeaderMap wrappers to use AtomicString type for header values (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master Created 7 years 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 | « Source/platform/network/WebSocketHandshakeResponse.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/StringOperators.h
diff --git a/Source/wtf/text/StringOperators.h b/Source/wtf/text/StringOperators.h
index 0a8ee93e3d8f5783c6e122b87eccabe340abfdb0..a4ed953d3c86e2ffa2043d62172cecac8e46ee19 100644
--- a/Source/wtf/text/StringOperators.h
+++ b/Source/wtf/text/StringOperators.h
@@ -35,13 +35,12 @@ public:
operator String() const
{
- RefPtr<StringImpl> resultImpl = makeString(m_string1, m_string2);
- return resultImpl.release();
+ return String(makeString(m_string1, m_string2));
}
operator AtomicString() const
{
- return operator String();
+ return AtomicString(makeString(m_string1, m_string2));
}
bool is8Bit()
« no previous file with comments | « Source/platform/network/WebSocketHandshakeResponse.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698