summaryrefslogtreecommitdiffstats
path: root/WebCore/dom/XMLDocumentParserLibxml2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/dom/XMLDocumentParserLibxml2.cpp')
-rw-r--r--WebCore/dom/XMLDocumentParserLibxml2.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/WebCore/dom/XMLDocumentParserLibxml2.cpp b/WebCore/dom/XMLDocumentParserLibxml2.cpp
index 7a3285f..23f9883 100644
--- a/WebCore/dom/XMLDocumentParserLibxml2.cpp
+++ b/WebCore/dom/XMLDocumentParserLibxml2.cpp
@@ -686,14 +686,12 @@ static inline String toString(const xmlChar* string)
static inline AtomicString toAtomicString(const xmlChar* string, size_t size)
{
- // FIXME: Use AtomicString::fromUTF8.
- return AtomicString(toString(string, size));
+ return AtomicString::fromUTF8(reinterpret_cast<const char*>(string), size);
}
static inline AtomicString toAtomicString(const xmlChar* string)
{
- // FIXME: Use AtomicString::fromUTF8.
- return AtomicString(toString(string));
+ return AtomicString::fromUTF8(reinterpret_cast<const char*>(string));
}
struct _xmlSAX2Namespace {