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

Unified Diff: third_party/WebKit/Source/wtf/text/TextCodecUTF16.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
Index: third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp
diff --git a/third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp b/third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp
index 0e3f01783bd218e579cba7068674a120d8cbe811..3927890cec9aa506caf8c0d6a447acacca88c363 100644
--- a/third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp
+++ b/third_party/WebKit/Source/wtf/text/TextCodecUTF16.cpp
@@ -163,7 +163,7 @@ CString TextCodecUTF16::encode(const UChar* characters,
ASSERT(length <= numeric_limits<size_t>::max() / 2);
char* bytes;
- CString result = CString::newUninitialized(length * 2, bytes);
+ CString result = CString::createUninitialized(length * 2, bytes);
// FIXME: CString is not a reasonable data structure for encoded UTF-16, which
// will have null characters inside it. Perhaps the result of encode should
@@ -192,7 +192,7 @@ CString TextCodecUTF16::encode(const LChar* characters,
RELEASE_ASSERT(length <= numeric_limits<size_t>::max() / 2);
char* bytes;
- CString result = CString::newUninitialized(length * 2, bytes);
+ CString result = CString::createUninitialized(length * 2, bytes);
if (m_littleEndian) {
for (size_t i = 0; i < length; ++i) {
« no previous file with comments | « third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp ('k') | third_party/WebKit/Source/wtf/text/TextCodecUserDefined.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698