Skip to content

Commit ae9fe60

Browse files
committed
LibGUI: Make Label::set_icon() take a const Gfx::Bitmap*
1 parent 0a94661 commit ae9fe60

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Libraries/LibGUI/Label.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Label::~Label()
4444
{
4545
}
4646

47-
void Label::set_icon(Gfx::Bitmap* icon)
47+
void Label::set_icon(const Gfx::Bitmap* icon)
4848
{
4949
if (m_icon == icon)
5050
return;

Libraries/LibGUI/Label.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Label : public Frame {
3939
String text() const { return m_text; }
4040
void set_text(const StringView&);
4141

42-
void set_icon(Gfx::Bitmap*);
42+
void set_icon(const Gfx::Bitmap*);
4343
const Gfx::Bitmap* icon() const { return m_icon.ptr(); }
4444
Gfx::Bitmap* icon() { return m_icon.ptr(); }
4545

0 commit comments

Comments
 (0)