mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:57:35 +00: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);
|
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)
|
RefPtr(const T& object)
|
||||||
: m_ptr(const_cast<T*>(&object))
|
: m_ptr(const_cast<T*>(&object))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue