mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 23:45:10 +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
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue