summaryrefslogtreecommitdiff
path: root/Userland/Applications/Piano
diff options
context:
space:
mode:
authorKarol Kosek <krkk@serenityos.org>2023-03-10 18:55:52 +0100
committerAndreas Kling <kling@serenityos.org>2023-03-16 09:58:42 +0100
commit797968c310d3b13f74968ba292e0b360d6d2d9c2 (patch)
treecc1a1bc5f52a9ce43d443d5630aa0da15e4b643b /Userland/Applications/Piano
parent5fed25ca9aa014372ccfbb79accb49663fc449e2 (diff)
downloadserenity-797968c310d3b13f74968ba292e0b360d6d2d9c2.zip
LibGUI+Userland: Make TabWidget::*add_tab() take title using new string
Diffstat (limited to 'Userland/Applications/Piano')
-rw-r--r--Userland/Applications/Piano/MainWidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/Piano/MainWidget.cpp b/Userland/Applications/Piano/MainWidget.cpp
index e08423e269..65e7615f48 100644
--- a/Userland/Applications/Piano/MainWidget.cpp
+++ b/Userland/Applications/Piano/MainWidget.cpp
@@ -42,11 +42,11 @@ ErrorOr<void> MainWidget::initialize()
m_wave_widget->set_fixed_height(100);
m_tab_widget = TRY(try_add<GUI::TabWidget>());
- m_roll_widget = TRY(m_tab_widget->try_add_tab<RollWidget>("Piano Roll", m_track_manager));
+ m_roll_widget = TRY(m_tab_widget->try_add_tab<RollWidget>(TRY("Piano Roll"_string), m_track_manager));
m_roll_widget->set_fixed_height(300);
- (void)TRY(m_tab_widget->try_add_tab<SamplerWidget>("Sampler", m_track_manager));
+ (void)TRY(m_tab_widget->try_add_tab<SamplerWidget>("Sampler"_short_string, m_track_manager));
m_player_widget = TRY(try_add<PlayerWidget>(m_track_manager, m_audio_loop));
m_keys_and_knobs_container = TRY(try_add<GUI::Widget>());