summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/GLabel.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-07-11 15:52:15 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-11 15:52:15 +0200
commit22528d8db34810aba184c257d404e221f040bbb4 (patch)
treebbf02f888587160514e90c519ec1908dfcbd7730 /Libraries/LibGUI/GLabel.cpp
parent992272761cdb098e067d1f70631a6a38a0400867 (diff)
downloadserenity-22528d8db34810aba184c257d404e221f040bbb4.zip
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.
Diffstat (limited to 'Libraries/LibGUI/GLabel.cpp')
-rw-r--r--Libraries/LibGUI/GLabel.cpp4
1 files changed, 2 insertions, 2 deletions
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<GraphicsBitmap>&& icon)
+void GLabel::set_icon(GraphicsBitmap* icon)
{
- m_icon = move(icon);
+ m_icon = icon;
}
void GLabel::set_text(const StringView& text)