mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
LibGUI: Make Label::set_icon() take a const Gfx::Bitmap*
This commit is contained in:
parent
0a94661c14
commit
ae9fe60412
Notes:
sideshowbarker
2024-07-19 08:04:10 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ae9fe60412a
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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(); }
|
||||
|
||||
|
|
Loading…
Reference in a new issue