mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 11:45:06 +00:00
AK: Improve smart pointer ergonomics a bit.
This commit is contained in:
parent
d5dec1922b
commit
3f6408919f
17 changed files with 49 additions and 31 deletions
|
@ -120,8 +120,6 @@ void GWidget::handle_paint_event(GPaintEvent& event)
|
|||
|
||||
void GWidget::set_layout(OwnPtr<GLayout>&& layout)
|
||||
{
|
||||
if (m_layout.ptr() == layout.ptr())
|
||||
return;
|
||||
if (m_layout)
|
||||
m_layout->notify_disowned(Badge<GWidget>(), *this);
|
||||
m_layout = move(layout);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue