mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:17:35 +00:00
AK: Ensure we never use OwnPtr<> with RefCounted types
This commit is contained in:
parent
62d1ac63e8
commit
0466810638
3 changed files with 15 additions and 1 deletions
|
@ -100,6 +100,16 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
static constexpr bool is_ref_counted(const RefCountedBase*)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static constexpr bool is_ref_counted(...)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
using AK::RefCounted;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue