diff options
Diffstat (limited to 'WebCore/platform/text/wince/TextCodecWinCE.cpp')
-rw-r--r-- | WebCore/platform/text/wince/TextCodecWinCE.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/WebCore/platform/text/wince/TextCodecWinCE.cpp b/WebCore/platform/text/wince/TextCodecWinCE.cpp index da6d5a5..3532e74 100644 --- a/WebCore/platform/text/wince/TextCodecWinCE.cpp +++ b/WebCore/platform/text/wince/TextCodecWinCE.cpp @@ -333,8 +333,7 @@ String TextCodecWinCE::decode(const char* bytes, size_t length, bool flush, bool result.append(L'?'); sawError = true; if (stopOnError) - return String(result.data(), result.size()); - + return String::adopt(result); if (left == 1) break; @@ -351,7 +350,8 @@ String TextCodecWinCE::decode(const char* bytes, size_t length, bool flush, bool } } else m_decodeBuffer.clear(); - return String(result.data(), result.size()); + + return String::adopt(result); } CString TextCodecWinCE::encode(const UChar* characters, size_t length, UnencodableHandling) |