diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Document.h')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Document.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Document.h b/Userland/Libraries/LibWeb/DOM/Document.h index f070ac17fd..d1c062507c 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.h +++ b/Userland/Libraries/LibWeb/DOM/Document.h @@ -45,7 +45,7 @@ public: static NonnullRefPtr<Document> create(const URL& url = "about:blank") { - return adopt(*new Document(url)); + return adopt_ref(*new Document(url)); } static NonnullRefPtr<Document> create_with_global_object(Bindings::WindowObject&) { |