summaryrefslogtreecommitdiff
path: root/AK/Weakable.h
diff options
context:
space:
mode:
Diffstat (limited to 'AK/Weakable.h')
-rw-r--r--AK/Weakable.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/AK/Weakable.h b/AK/Weakable.h
index c800be9205..0aad3cb436 100644
--- a/AK/Weakable.h
+++ b/AK/Weakable.h
@@ -105,8 +105,13 @@ private:
class Link;
public:
+#ifndef KERNEL
template<typename U = T>
- WeakPtr<U> make_weak_ptr() const { return MUST(try_make_weak_ptr<U>()); }
+ WeakPtr<U> make_weak_ptr() const
+ {
+ return MUST(try_make_weak_ptr<U>());
+ }
+#endif
template<typename U = T>
ErrorOr<WeakPtr<U>> try_make_weak_ptr() const;