diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-29 18:41:34 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-29 19:37:23 +0200 |
commit | ae9fe60412a95a5958b49fde0069bd72e52c8add (patch) | |
tree | a2dd5a436992a74cc30f862930e292de49ee8df8 /Libraries | |
parent | 0a94661c148a17f455875bd29f977eed2e080d25 (diff) | |
download | serenity-ae9fe60412a95a5958b49fde0069bd72e52c8add.zip |
LibGUI: Make Label::set_icon() take a const Gfx::Bitmap*
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibGUI/Label.cpp | 2 | ||||
-rw-r--r-- | Libraries/LibGUI/Label.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibGUI/Label.cpp b/Libraries/LibGUI/Label.cpp index aaab033106..687d774e0b 100644 --- a/Libraries/LibGUI/Label.cpp +++ b/Libraries/LibGUI/Label.cpp @@ -44,7 +44,7 @@ Label::~Label() { } -void Label::set_icon(Gfx::Bitmap* icon) +void Label::set_icon(const Gfx::Bitmap* icon) { if (m_icon == icon) return; diff --git a/Libraries/LibGUI/Label.h b/Libraries/LibGUI/Label.h index d0541eccfa..930bfe68bb 100644 --- a/Libraries/LibGUI/Label.h +++ b/Libraries/LibGUI/Label.h @@ -39,7 +39,7 @@ public: String text() const { return m_text; } void set_text(const StringView&); - void set_icon(Gfx::Bitmap*); + void set_icon(const Gfx::Bitmap*); const Gfx::Bitmap* icon() const { return m_icon.ptr(); } Gfx::Bitmap* icon() { return m_icon.ptr(); } |