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

Unified Diff: third_party/WebKit/Source/platform/exported/WebCString.cpp

Issue 2473093003: Fix up naming in CString. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/text/LineEnding.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/text/LineEnding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698