From ae9fe60412a95a5958b49fde0069bd72e52c8add Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 29 Mar 2020 18:41:34 +0200 Subject: LibGUI: Make Label::set_icon() take a const Gfx::Bitmap* --- Libraries/LibGUI/Label.cpp | 2 +- Libraries/LibGUI/Label.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Libraries') 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(); } -- cgit v1.2.3