mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 09:04:30 +00:00
AK: Improve smart pointer ergonomics a bit.
This commit is contained in:
@@ -137,7 +137,7 @@ void GButton::set_action(GAction& action)
|
||||
|
||||
void GButton::set_icon(RetainPtr<GraphicsBitmap>&& icon)
|
||||
{
|
||||
if (m_icon.ptr() == icon.ptr())
|
||||
if (m_icon == icon)
|
||||
return;
|
||||
m_icon = move(icon);
|
||||
update();
|
||||
|
||||
Reference in New Issue
Block a user