summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-01-05 17:34:14 +0000
committerLinus Groh <mail@linusgroh.de>2023-01-06 16:03:50 +0100
commit6e0ad5536fad68641205f53a2d74bd411ceaee4d (patch)
treec6283f25a5b82fbc5dfacd257ab2bc07104539a2 /AK
parentd7ba577c9086e4cbd1ae58bd3c85c9cc5d92c7cc (diff)
downloadserenity-6e0ad5536fad68641205f53a2d74bd411ceaee4d.zip
AK: Export `adopt_nonnull_ref_or_enomem` to the global namespace
Diffstat (limited to 'AK')
-rw-r--r--AK/RefPtr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/AK/RefPtr.h b/AK/RefPtr.h
index 9586e9c11e..f99ac2c9fa 100644
--- a/AK/RefPtr.h
+++ b/AK/RefPtr.h
@@ -353,6 +353,7 @@ inline ErrorOr<NonnullRefPtr<T>> adopt_nonnull_ref_or_enomem(T* object)
}
#if USING_AK_GLOBALLY
+using AK::adopt_nonnull_ref_or_enomem;
using AK::adopt_ref_if_nonnull;
using AK::RefPtr;
using AK::static_ptr_cast;