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

Unified Diff: third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp

Issue 1373773002: Fix check-webkit-style errors in Source/wtf/text/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
Index: third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp
diff --git a/third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp b/third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp
index 98ebe6cf0dd7fa14ccefa93ecf2a3022c5f721a4..fdf5cf6a6dedbff9362409312b6e4aa2f49d43de 100644
--- a/third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp
+++ b/third_party/WebKit/Source/wtf/text/TextCodecLatin1.cpp
@@ -26,14 +26,12 @@
#include "config.h"
#include "wtf/text/TextCodecLatin1.h"
-#include "wtf/text/TextCodecASCIIFastPath.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/text/CString.h"
#include "wtf/text/StringBuffer.h"
+#include "wtf/text/TextCodecASCIIFastPath.h"
#include "wtf/text/WTFString.h"
-using namespace WTF;
-
namespace WTF {
static const UChar table[256] = {
@@ -215,9 +213,10 @@ static CString encodeComplexWindowsLatin1(const CharType* characters, size_t len
// Do an efficient check to detect characters other than 00-7F and A0-FF.
if (b != c || (c & 0xE0) == 0x80) {
// Look for a way to encode this with Windows Latin-1.
- for (b = 0x80; b < 0xA0; ++b)
+ for (b = 0x80; b < 0xA0; ++b) {
if (table[b] == c)
goto gotByte;
+ }
// No way to encode this character with Windows Latin-1.
UnencodableReplacementArray replacement;
int replacementLength = TextCodec::getUnencodableReplacement(c, handling, replacement);
« no previous file with comments | « third_party/WebKit/Source/wtf/text/TextCodecICU.cpp ('k') | third_party/WebKit/Source/wtf/text/TextCodecUTF16.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698