Build fix.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Sep 2006 19:48:28 +0000 (19:48 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Sep 2006 19:48:28 +0000 (19:48 +0000)
        * loader/Decoder.cpp:
        (Decoder::Decoder): Use String::latin1().

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

WebCore/ChangeLog
WebCore/loader/Decoder.cpp

index 1921c3fa960fde46cb6e20b545654964b6cb62e0..22aae86de72eed715b5e72635146c58c0708c076 100644 (file)
@@ -1,3 +1,10 @@
+2006-09-01  Alexey Proskuryakov  <ap@nypop.com>
+
+        Release build fix.
+
+        * loader/Decoder.cpp:
+        (Decoder::Decoder): Use String::latin1().
+
 2006-09-01  Alexey Proskuryakov  <ap@nypop.com>
 
         Reviewed by Eric.
index 2b5944cd712856ca52d374de98b4a6ee2c83e08e..d33b0b31d0f5389edb9cd6991e40bf832efeee47 100644 (file)
@@ -25,6 +25,7 @@
 #include "config.h"
 #include "Decoder.h"
 
+#include "CString.h"
 #include "DOMImplementation.h"
 #include "HTMLNames.h"
 #include "StreamingTextDecoder.h"
@@ -251,8 +252,8 @@ breakBreak:
 }
 
 Decoder::Decoder(const String& mimeType, const String& defaultEncodingName)
-  : m_encoding(defaultEncodingName.isNull() ? "iso8859-1" : defaultEncodingName.ascii().data())
-  , m_encodingName(defaultEncodingName.isNull() ? "iso8859-1" : defaultEncodingName.ascii().data())
+  : m_encoding(defaultEncodingName.isNull() ? "iso8859-1" : defaultEncodingName.latin1())
+  , m_encodingName(defaultEncodingName.isNull() ? "iso8859-1" : defaultEncodingName.latin1())
   , m_type(DefaultEncoding)
   , m_reachedBody(false)
   , m_checkedForCSSCharset(false)