mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 08:38:10 +00:00
AK: Remove copy_ref().
This patch removes copy_ref() from RefPtr and NonnullRefPtr. This means that it's now okay to simply copy these smart pointers instead: - RefPtr = RefPtr // Okay! - RefPtr = NonnullRefPtr // Okay! - NonnullRefPtr = NonnullRefPtr // Okay! - NonnullRefPtr = RefPtr // Not okay, since RefPtr can be null.
This commit is contained in:
parent
323704c851
commit
eb64a4ca60
2 changed files with 0 additions and 11 deletions
|
@ -177,11 +177,6 @@ public:
|
|||
return *this;
|
||||
}
|
||||
|
||||
RefPtr copy_ref() const
|
||||
{
|
||||
return RefPtr(m_ptr);
|
||||
}
|
||||
|
||||
void clear()
|
||||
{
|
||||
deref_if_not_null(m_ptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue