Index: Source/core/xml/XMLErrors.cpp |
diff --git a/Source/core/xml/XMLErrors.cpp b/Source/core/xml/XMLErrors.cpp |
index 26a6d1acd9d1976856bf949a31865d8537e6cc01..caad7f03667d2372f86cb476a6179f183872a84b 100644 |
--- a/Source/core/xml/XMLErrors.cpp |
+++ b/Source/core/xml/XMLErrors.cpp |
@@ -129,7 +129,7 @@ void XMLErrors::insertErrorMessageBlock() |
RefPtr<Element> body = m_document->createElement(bodyTag, true); |
rootElement->parserAppendChild(body); |
- m_document->parserRemoveChild(documentElement.get()); |
+ m_document->parserRemoveChild(*documentElement); |
body->parserAppendChild(documentElement); |
m_document->parserAppendChild(rootElement); |