mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
LibGUI: Make some API's take String instead of StringView
This commit is contained in:
parent
36f27094d0
commit
0e4eb62dd8
6 changed files with 20 additions and 20 deletions
|
@ -69,9 +69,9 @@ NonnullRefPtr<Label> Statusbar::create_label()
|
|||
return label;
|
||||
}
|
||||
|
||||
void Statusbar::set_text(const StringView& text)
|
||||
void Statusbar::set_text(String text)
|
||||
{
|
||||
m_labels.first().set_text(text);
|
||||
m_labels.first().set_text(move(text));
|
||||
}
|
||||
|
||||
String Statusbar::text() const
|
||||
|
@ -79,9 +79,9 @@ String Statusbar::text() const
|
|||
return m_labels.first().text();
|
||||
}
|
||||
|
||||
void Statusbar::set_text(int index, const StringView& text)
|
||||
void Statusbar::set_text(int index, String text)
|
||||
{
|
||||
m_labels.at(index).set_text(text);
|
||||
m_labels.at(index).set_text(move(text));
|
||||
}
|
||||
|
||||
String Statusbar::text(int index) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue