LibGUI+Userland: Make TabWidget::*add_tab() take title using new string

This commit is contained in:
Karol Kosek 2023-03-10 18:55:52 +01:00 committed by Andreas Kling
commit 797968c310
Notes: sideshowbarker 2024-07-16 22:51:25 +09:00
18 changed files with 59 additions and 59 deletions

View file

@ -24,7 +24,7 @@ GalleryWidget::GalleryWidget()
ErrorOr<void> GalleryWidget::load_basic_model_tab()
{
auto tab = TRY(m_tab_widget->try_add_tab<GUI::Widget>("Basic Model"));
auto tab = TRY(m_tab_widget->try_add_tab<GUI::Widget>(TRY("Basic Model"_string)));
TRY(tab->load_from_gml(basic_model_tab_gml));
m_basic_model = BasicModel::create();