diff options
author | Karol Kosek <krkk@serenityos.org> | 2023-03-10 19:04:13 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-16 09:58:42 +0100 |
commit | 446c600d093059dd2af3b357ea1c0c698c66d27d (patch) | |
tree | 54e29f3921bda384934647cd6cc539ff71a74f6e /Userland/Libraries/LibGUI | |
parent | 797968c310d3b13f74968ba292e0b360d6d2d9c2 (diff) | |
download | serenity-446c600d093059dd2af3b357ea1c0c698c66d27d.zip |
LibGUI+Applications: Port SettingsWindow::add_tab() to the new string
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r-- | Userland/Libraries/LibGUI/SettingsWindow.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibGUI/SettingsWindow.h b/Userland/Libraries/LibGUI/SettingsWindow.h index 495f17e0e1..49ac2f1956 100644 --- a/Userland/Libraries/LibGUI/SettingsWindow.h +++ b/Userland/Libraries/LibGUI/SettingsWindow.h @@ -47,17 +47,17 @@ public: virtual ~SettingsWindow() override = default; template<class T, class... Args> - ErrorOr<NonnullRefPtr<T>> add_tab(DeprecatedString title, StringView id, Args&&... args) + ErrorOr<NonnullRefPtr<T>> add_tab(String title, StringView id, Args&&... args) { - auto tab = TRY(m_tab_widget->try_add_tab<T>(TRY(String::from_deprecated_string(title)), forward<Args>(args)...)); + auto tab = TRY(m_tab_widget->try_add_tab<T>(move(title), forward<Args>(args)...)); TRY(m_tabs.try_set(id, tab)); tab->set_settings_window(*this); return tab; } - ErrorOr<void> add_tab(NonnullRefPtr<Tab> const& tab, DeprecatedString title, StringView id) + ErrorOr<void> add_tab(NonnullRefPtr<Tab> const& tab, String title, StringView id) { - tab->set_title(TRY(String::from_deprecated_string(title))); + tab->set_title(move(title)); TRY(m_tab_widget->try_add_widget(*tab)); TRY(m_tabs.try_set(id, tab)); tab->set_settings_window(*this); |