mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
StringViewize a bunch of things -- mostly LibGUI
This commit is contained in:
committed by
Andreas Kling
parent
f9ba7adae2
commit
1024dfa81a
@@ -6,7 +6,7 @@ GAbstractButton::GAbstractButton(GWidget* parent)
|
||||
{
|
||||
}
|
||||
|
||||
GAbstractButton::GAbstractButton(const String& text, GWidget* parent)
|
||||
GAbstractButton::GAbstractButton(const StringView& text, GWidget* parent)
|
||||
: GWidget(parent)
|
||||
, m_text(text)
|
||||
{
|
||||
@@ -16,7 +16,7 @@ GAbstractButton::~GAbstractButton()
|
||||
{
|
||||
}
|
||||
|
||||
void GAbstractButton::set_text(const String& text)
|
||||
void GAbstractButton::set_text(const StringView& text)
|
||||
{
|
||||
if (m_text == text)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user