diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-07-11 15:52:15 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-11 15:52:15 +0200 |
commit | 22528d8db34810aba184c257d404e221f040bbb4 (patch) | |
tree | bbf02f888587160514e90c519ec1908dfcbd7730 /Libraries/LibGUI/GLabel.cpp | |
parent | 992272761cdb098e067d1f70631a6a38a0400867 (diff) | |
download | serenity-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.cpp | 4 |
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) |