diff --git a/Libraries/LibGUI/GLabel.cpp b/Libraries/LibGUI/GLabel.cpp index cc1ac3e4a3..5a6fdc6580 100644 --- a/Libraries/LibGUI/GLabel.cpp +++ b/Libraries/LibGUI/GLabel.cpp @@ -17,9 +17,9 @@ GLabel::~GLabel() { } -void GLabel::set_icon(RefPtr&& icon) +void GLabel::set_icon(GraphicsBitmap* icon) { - m_icon = move(icon); + m_icon = icon; } void GLabel::set_text(const StringView& text) diff --git a/Libraries/LibGUI/GLabel.h b/Libraries/LibGUI/GLabel.h index dffd0b70bd..e3ad6a568e 100644 --- a/Libraries/LibGUI/GLabel.h +++ b/Libraries/LibGUI/GLabel.h @@ -14,7 +14,7 @@ public: String text() const { return m_text; } void set_text(const StringView&); - void set_icon(RefPtr&&); + void set_icon(GraphicsBitmap*); const GraphicsBitmap* icon() const { return m_icon.ptr(); } GraphicsBitmap* icon() { return m_icon.ptr(); }