summaryrefslogtreecommitdiff
path: root/LibGUI/GWidget.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-04-14 02:36:06 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-04-14 02:36:06 +0200
commit3f6408919ff020a9fcf575a231cbbd8820c40a60 (patch)
tree570eda8fc11a4b99fc6fa7fc7abce10af417baf3 /LibGUI/GWidget.cpp
parentd5dec1922bd977e92cc86e6e7c0d103ee8a3862d (diff)
downloadserenity-3f6408919ff020a9fcf575a231cbbd8820c40a60.zip
AK: Improve smart pointer ergonomics a bit.
Diffstat (limited to 'LibGUI/GWidget.cpp')
-rw-r--r--LibGUI/GWidget.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/LibGUI/GWidget.cpp b/LibGUI/GWidget.cpp
index e4e0756b14..4bc8bb1c8e 100644
--- a/LibGUI/GWidget.cpp
+++ b/LibGUI/GWidget.cpp
@@ -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);