1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:28:10 +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:
Andreas Kling 2019-07-11 15:52:15 +02:00
parent 992272761c
commit 22528d8db3
2 changed files with 3 additions and 3 deletions

View file

@ -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)