summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/text/TextCodecUTF16.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/text/TextCodecUTF16.cpp')
-rw-r--r--WebCore/platform/text/TextCodecUTF16.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/WebCore/platform/text/TextCodecUTF16.cpp b/WebCore/platform/text/TextCodecUTF16.cpp
index a4d0d28..db77000 100644
--- a/WebCore/platform/text/TextCodecUTF16.cpp
+++ b/WebCore/platform/text/TextCodecUTF16.cpp
@@ -29,8 +29,7 @@
#include "CString.h"
#include "PlatformString.h"
#include "StringBuffer.h"
-
-using std::auto_ptr;
+#include <wtf/PassOwnPtr.h>
namespace WebCore {
@@ -49,14 +48,14 @@ void TextCodecUTF16::registerEncodingNames(EncodingNameRegistrar registrar)
registrar("unicodeFFFE", "UTF-16BE");
}
-static auto_ptr<TextCodec> newStreamingTextDecoderUTF16LE(const TextEncoding&, const void*)
+static PassOwnPtr<TextCodec> newStreamingTextDecoderUTF16LE(const TextEncoding&, const void*)
{
- return auto_ptr<TextCodec>(new TextCodecUTF16(true));
+ return new TextCodecUTF16(true);
}
-static auto_ptr<TextCodec> newStreamingTextDecoderUTF16BE(const TextEncoding&, const void*)
+static PassOwnPtr<TextCodec> newStreamingTextDecoderUTF16BE(const TextEncoding&, const void*)
{
- return auto_ptr<TextCodec>(new TextCodecUTF16(false));
+ return new TextCodecUTF16(false);
}
void TextCodecUTF16::registerCodecs(TextCodecRegistrar registrar)