diff options
author | Andreas Kling <kling@serenityos.org> | 2022-05-07 12:50:54 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-06-15 17:15:04 +0200 |
commit | 75dca629df6bbcb051cf1daf4606cf53654b2494 (patch) | |
tree | 47a673de7076ded5224853892f3900015f70531c /AK/Forward.h | |
parent | 9e994da2acdec9807a82b3e3356876a2e1dd59b0 (diff) | |
download | serenity-75dca629df6bbcb051cf1daf4606cf53654b2494.zip |
AK+Kernel: Remove RefPtrTraits template param in userspace code
Only the kernel actually uses RefPtrTraits, so let's not burden
userspace builds with the complexity.
Diffstat (limited to 'AK/Forward.h')
-rw-r--r-- | AK/Forward.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/AK/Forward.h b/AK/Forward.h index 938c9fcb8f..cced16c5bf 100644 --- a/AK/Forward.h +++ b/AK/Forward.h @@ -115,11 +115,16 @@ class NonnullOwnPtrVector; template<typename T> class Optional; +#ifdef KERNEL template<typename T> struct RefPtrTraits; template<typename T, typename PtrTraits = RefPtrTraits<T>> class RefPtr; +#else +template<typename T> +class RefPtr; +#endif template<typename T> class OwnPtr; |