mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
AK: Improve smart pointer ergonomics a bit.
This commit is contained in:
@@ -15,7 +15,7 @@ GAbstractView::~GAbstractView()
|
||||
|
||||
void GAbstractView::set_model(RetainPtr<GModel>&& model)
|
||||
{
|
||||
if (model.ptr() == m_model.ptr())
|
||||
if (model == m_model)
|
||||
return;
|
||||
if (m_model)
|
||||
m_model->unregister_view(Badge<GAbstractView>(), *this);
|
||||
|
||||
Reference in New Issue
Block a user