mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
AK: Remove two redundant RefPtr constructors.
We already have constructors for "const T*" and "const T&" so we don't need to have non-const variants.
This commit is contained in:
parent
69281c22d4
commit
c5903ec4bb
1 changed files with 0 additions and 10 deletions
10
AK/RefPtr.h
10
AK/RefPtr.h
|
@ -23,16 +23,6 @@ public:
|
|||
{
|
||||
ref_if_not_null(m_ptr);
|
||||
}
|
||||
RefPtr(T* ptr)
|
||||
: m_ptr(ptr)
|
||||
{
|
||||
ref_if_not_null(m_ptr);
|
||||
}
|
||||
RefPtr(T& object)
|
||||
: m_ptr(&object)
|
||||
{
|
||||
m_ptr->ref();
|
||||
}
|
||||
RefPtr(const T& object)
|
||||
: m_ptr(const_cast<T*>(&object))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue