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

Unified Diff: Source/wtf/text/TextCodecUTF16.cpp

Issue 1119663002: Making Unicode character names consistent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase patch Created 5 years, 7 months 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 | « Source/wtf/text/TextCodecReplacement.cpp ('k') | Source/wtf/unicode/CharacterNames.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/text/TextCodecUTF16.cpp
diff --git a/Source/wtf/text/TextCodecUTF16.cpp b/Source/wtf/text/TextCodecUTF16.cpp
index a4e27366d4474e253d8dc289cc3f70970afa12bd..fe5e3f91d08167fd7d404c2a67ae80666b70dbb7 100644
--- a/Source/wtf/text/TextCodecUTF16.cpp
+++ b/Source/wtf/text/TextCodecUTF16.cpp
@@ -76,7 +76,7 @@ String TextCodecUTF16::decode(const char* bytes, size_t length, FlushBehavior fl
if (!reallyFlush || !m_haveBufferedByte)
return String();
sawError = true;
- return String(&Unicode::replacementCharacter, 1);
+ return String(&replacementCharacter, 1);
}
// FIXME: This should generate an error if there is an unpaired surrogate.
@@ -120,7 +120,7 @@ String TextCodecUTF16::decode(const char* bytes, size_t length, FlushBehavior fl
if (reallyFlush) {
sawError = true;
- *q++ = Unicode::replacementCharacter;
+ *q++ = replacementCharacter;
} else {
m_haveBufferedByte = true;
m_bufferedByte = p[0];
« no previous file with comments | « Source/wtf/text/TextCodecReplacement.cpp ('k') | Source/wtf/unicode/CharacterNames.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698