mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
GLabel: Make set_icon() take a GraphicsBitmap*.
Taking a RefPtr<GraphicsBitmap>&& was just making things unnecessarily complicated for clients, and didn't actually improve anything.
This commit is contained in:
@@ -17,9 +17,9 @@ GLabel::~GLabel()
|
||||
{
|
||||
}
|
||||
|
||||
void GLabel::set_icon(RefPtr<GraphicsBitmap>&& icon)
|
||||
void GLabel::set_icon(GraphicsBitmap* icon)
|
||||
{
|
||||
m_icon = move(icon);
|
||||
m_icon = icon;
|
||||
}
|
||||
|
||||
void GLabel::set_text(const StringView& text)
|
||||
|
||||
Reference in New Issue
Block a user