summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/GLabel.h
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.h
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.h')
-rw-r--r--Libraries/LibGUI/GLabel.h2
1 files changed, 1 insertions, 1 deletions
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<GraphicsBitmap>&&);
+ void set_icon(GraphicsBitmap*);
const GraphicsBitmap* icon() const { return m_icon.ptr(); }
GraphicsBitmap* icon() { return m_icon.ptr(); }