| Index: third_party/WebKit/Source/platform/exported/WebCString.cpp
|
| diff --git a/third_party/WebKit/Source/platform/exported/WebCString.cpp b/third_party/WebKit/Source/platform/exported/WebCString.cpp
|
| index 12f1525bbc07e6a83139d370eeb53b013147927d..02cafcadedf3a111c35c50fa58b464c33edaa947 100644
|
| --- a/third_party/WebKit/Source/platform/exported/WebCString.cpp
|
| +++ b/third_party/WebKit/Source/platform/exported/WebCString.cpp
|
| @@ -57,11 +57,7 @@ void WebCString::assign(const WebCString& other) {
|
| }
|
|
|
| void WebCString::assign(const char* data, size_t length) {
|
| - char* newData;
|
| - RefPtr<WTF::CStringBuffer> buffer =
|
| - WTF::CString::newUninitialized(length, newData).buffer();
|
| - memcpy(newData, data, length);
|
| - assign(buffer.get());
|
| + assign(WTF::CString(data, length).impl());
|
| }
|
|
|
| size_t WebCString::length() const {
|
| @@ -77,11 +73,11 @@ WebString WebCString::utf16() const {
|
| }
|
|
|
| WebCString::WebCString(const WTF::CString& s) {
|
| - assign(s.buffer());
|
| + assign(s.impl());
|
| }
|
|
|
| WebCString& WebCString::operator=(const WTF::CString& s) {
|
| - assign(s.buffer());
|
| + assign(s.impl());
|
| return *this;
|
| }
|
|
|
| @@ -89,7 +85,7 @@ WebCString::operator WTF::CString() const {
|
| return m_private.get();
|
| }
|
|
|
| -void WebCString::assign(WTF::CStringBuffer* p) {
|
| +void WebCString::assign(WTF::CStringImpl* p) {
|
| m_private = p;
|
| }
|
|
|
|
|