summaryrefslogtreecommitdiff
path: root/LibGUI/GWindow.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/GWindow.cpp
parentd5dec1922bd977e92cc86e6e7c0d103ee8a3862d (diff)
downloadserenity-3f6408919ff020a9fcf575a231cbbd8820c40a60.zip
AK: Improve smart pointer ergonomics a bit.
Diffstat (limited to 'LibGUI/GWindow.cpp')
-rw-r--r--LibGUI/GWindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/LibGUI/GWindow.cpp b/LibGUI/GWindow.cpp
index 5c94d49eae..f002078987 100644
--- a/LibGUI/GWindow.cpp
+++ b/LibGUI/GWindow.cpp
@@ -346,14 +346,14 @@ void GWindow::set_focused_widget(GWidget* widget)
void GWindow::set_global_cursor_tracking_widget(GWidget* widget)
{
- if (widget == m_global_cursor_tracking_widget.ptr())
+ if (widget == m_global_cursor_tracking_widget)
return;
m_global_cursor_tracking_widget = widget ? widget->make_weak_ptr() : nullptr;
}
void GWindow::set_automatic_cursor_tracking_widget(GWidget* widget)
{
- if (widget == m_automatic_cursor_tracking_widget.ptr())
+ if (widget == m_automatic_cursor_tracking_widget)
return;
m_automatic_cursor_tracking_widget = widget ? widget->make_weak_ptr() : nullptr;
}
@@ -385,7 +385,7 @@ void GWindow::set_opacity(float opacity)
void GWindow::set_hovered_widget(GWidget* widget)
{
- if (widget == m_hovered_widget.ptr())
+ if (widget == m_hovered_widget)
return;
if (m_hovered_widget)