summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLHeadingElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/HTMLHeadingElement.cpp')
-rw-r--r--Source/WebCore/html/HTMLHeadingElement.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WebCore/html/HTMLHeadingElement.cpp b/Source/WebCore/html/HTMLHeadingElement.cpp
index 47ec663a2..9aad0355e 100644
--- a/Source/WebCore/html/HTMLHeadingElement.cpp
+++ b/Source/WebCore/html/HTMLHeadingElement.cpp
@@ -30,9 +30,9 @@ inline HTMLHeadingElement::HTMLHeadingElement(const QualifiedName& tagName, Docu
{
}
-PassRefPtr<HTMLHeadingElement> HTMLHeadingElement::create(const QualifiedName& tagName, Document& document)
+Ref<HTMLHeadingElement> HTMLHeadingElement::create(const QualifiedName& tagName, Document& document)
{
- return adoptRef(new HTMLHeadingElement(tagName, document));
+ return adoptRef(*new HTMLHeadingElement(tagName, document));
}
}