From 797968c310d3b13f74968ba292e0b360d6d2d9c2 Mon Sep 17 00:00:00 2001 From: Karol Kosek Date: Fri, 10 Mar 2023 18:55:52 +0100 Subject: LibGUI+Userland: Make TabWidget::*add_tab() take title using new string --- Userland/Applications/Piano/MainWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Applications/Piano') 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 MainWidget::initialize() m_wave_widget->set_fixed_height(100); m_tab_widget = TRY(try_add()); - m_roll_widget = TRY(m_tab_widget->try_add_tab("Piano Roll", m_track_manager)); + m_roll_widget = TRY(m_tab_widget->try_add_tab(TRY("Piano Roll"_string), m_track_manager)); m_roll_widget->set_fixed_height(300); - (void)TRY(m_tab_widget->try_add_tab("Sampler", m_track_manager)); + (void)TRY(m_tab_widget->try_add_tab("Sampler"_short_string, m_track_manager)); m_player_widget = TRY(try_add(m_track_manager, m_audio_loop)); m_keys_and_knobs_container = TRY(try_add()); -- cgit v1.2.3