mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
StringViewize a bunch of things -- mostly LibGUI
This commit is contained in:
parent
f9ba7adae2
commit
1024dfa81a
59 changed files with 129 additions and 139 deletions
|
@ -7,7 +7,7 @@ GLabel::GLabel(GWidget* parent)
|
|||
{
|
||||
}
|
||||
|
||||
GLabel::GLabel(const String& text, GWidget* parent)
|
||||
GLabel::GLabel(const StringView& text, GWidget* parent)
|
||||
: GFrame(parent)
|
||||
, m_text(text)
|
||||
{
|
||||
|
@ -22,7 +22,7 @@ void GLabel::set_icon(RetainPtr<GraphicsBitmap>&& icon)
|
|||
m_icon = move(icon);
|
||||
}
|
||||
|
||||
void GLabel::set_text(const String& text)
|
||||
void GLabel::set_text(const StringView& text)
|
||||
{
|
||||
if (text == m_text)
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue