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

Unified Diff: third_party/WebKit/Source/wtf/text/AtomicString.h

Issue 2500723002: Add UTF-16 string literal constructors to String classes (Closed)
Patch Set: esprehn nit (cstr -> chars) Created 4 years, 1 month 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: third_party/WebKit/Source/wtf/text/AtomicString.h
diff --git a/third_party/WebKit/Source/wtf/text/AtomicString.h b/third_party/WebKit/Source/wtf/text/AtomicString.h
index 8b537a7a776679a4d3e10ad9984119503a736e80..4099cd8e352735faf3c87f12c67f37bdee36c018 100644
--- a/third_party/WebKit/Source/wtf/text/AtomicString.h
+++ b/third_party/WebKit/Source/wtf/text/AtomicString.h
@@ -50,6 +50,8 @@ class WTF_EXPORT AtomicString {
AtomicString(const LChar* chars, unsigned length);
AtomicString(const UChar* chars, unsigned length);
AtomicString(const UChar* chars);
+ AtomicString(const char16_t* chars)
+ : AtomicString(reinterpret_cast<const UChar*>(chars)) {}
template <size_t inlineCapacity>
explicit AtomicString(const Vector<UChar, inlineCapacity>& vector)
« no previous file with comments | « no previous file | third_party/WebKit/Source/wtf/text/StringView.h » ('j') | third_party/WebKit/Source/wtf/text/WTFString.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698