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..40f5b60137d7081eba4798412e2500e9d00400f7 100644 |
| --- a/third_party/WebKit/Source/wtf/text/WTFString.h |
| +++ b/third_party/WebKit/Source/wtf/text/WTFString.h |
| @@ -84,6 +84,7 @@ class WTF_EXPORT String { |
| // Construct a string with UTF-16 data, from a null-terminated source. |
| String(const UChar*); |
| + String(const char16_t* cstr) : String(reinterpret_cast<const UChar*>(cstr)) {} |
|
esprehn
2016/11/14 02:24:15
chars
|
| // Construct a string with latin1 data. |
| String(const LChar* characters, unsigned length); |