Chromium Code Reviews| Index: third_party/WebKit/Source/wtf/text/WTFString.h |
| diff --git a/third_party/WebKit/Source/wtf/text/WTFString.h b/third_party/WebKit/Source/wtf/text/WTFString.h |
| index 354001358ba11f6bde98c02a52e155ac3e3f3d57..3c516adf647f803ba4eb9509c21688d456bb787d 100644 |
| --- a/third_party/WebKit/Source/wtf/text/WTFString.h |
| +++ b/third_party/WebKit/Source/wtf/text/WTFString.h |
| @@ -84,6 +84,8 @@ class WTF_EXPORT String { |
| // Construct a string with UTF-16 data, from a null-terminated source. |
| String(const UChar*); |
| + String(const char16_t* chars) |
| + : String(reinterpret_cast<const UChar*>(chars)) {} |
|
jungshik at Google
2017/03/09 20:33:33
When the C++ spec is strictly interpreted, this ca
|
| // Construct a string with latin1 data. |
| String(const LChar* characters, unsigned length); |