Fix trivial typo in TextEncodingDetectorICU.cpp.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 May 2015 18:44:12 +0000 (18:44 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 15 May 2015 18:44:12 +0000 (18:44 +0000)
https://bugs.webkit.org/show_bug.cgi?id=145055

Patch by Sungmann Cho <sungmann.cho@navercorp.com> on 2015-05-15
Reviewed by Alexey Proskuryakov.

No new tests, no behavior change..

* platform/text/TextEncodingDetectorICU.cpp:
(WebCore::detectTextEncoding):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@184402 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/text/TextEncodingDetectorICU.cpp

index 9596ae6..d493e81 100644 (file)
@@ -1,3 +1,15 @@
+2015-05-15  Sungmann Cho  <sungmann.cho@navercorp.com>
+
+        Fix trivial typo in TextEncodingDetectorICU.cpp.
+        https://bugs.webkit.org/show_bug.cgi?id=145055
+
+        Reviewed by Alexey Proskuryakov.
+
+        No new tests, no behavior change..
+
+        * platform/text/TextEncodingDetectorICU.cpp:
+        (WebCore::detectTextEncoding):
+
 2015-05-15  Alexey Proskuryakov  <ap@apple.com>
 
         Cyrillic top-level domains are displayed as punycode
index e380668..8153b75 100644 (file)
@@ -79,14 +79,14 @@ bool detectTextEncoding(const char* data, size_t len,
         // the chunk is consistent with a set of encodings. So, instead of
         // setting an arbitrary threshold, we have to scan all the encodings
         // consistent with the data.  
-        const int32_t kThresold = 10;
+        const int32_t kThreshold = 10;
         for (int i = 0; i < matchesCount; ++i) {
             int32_t confidence = ucsdet_getConfidence(matches[i], &status);
             if (U_FAILURE(status)) {
                 status = U_ZERO_ERROR;
                 continue;
             }
-            if (confidence < kThresold)
+            if (confidence < kThreshold)
                 break;
             const char* matchEncoding = ucsdet_getName(matches[i], &status);
             if (U_FAILURE(status)) {