diff options
Diffstat (limited to 'Userland/Libraries/LibGUI/Statusbar.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/Statusbar.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibGUI/Statusbar.cpp b/Userland/Libraries/LibGUI/Statusbar.cpp index 62a38a58f3..311dbb9621 100644 --- a/Userland/Libraries/LibGUI/Statusbar.cpp +++ b/Userland/Libraries/LibGUI/Statusbar.cpp @@ -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 |