diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h')
-rw-r--r-- | Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h index 1c1e91241e..2b3f46d271 100644 --- a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h +++ b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h @@ -35,7 +35,7 @@ public: static NonnullRefPtr<XMLHttpRequest> create(DOM::Window& window) { - return adopt(*new XMLHttpRequest(window)); + return adopt_ref(*new XMLHttpRequest(window)); } static NonnullRefPtr<XMLHttpRequest> create_with_global_object(Bindings::WindowObject& window) { |