From aaed751bf4430bf4b9b30cef532b8753b9f639ce Mon Sep 17 00:00:00 2001 From: untodesu Date: Thu, 11 Sep 2025 13:48:31 +0500 Subject: Replace most of C strings with string_view --- game/client/gui/message_box.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'game/client/gui/message_box.cc') diff --git a/game/client/gui/message_box.cc b/game/client/gui/message_box.cc index 615281b..59e2d33 100644 --- a/game/client/gui/message_box.cc +++ b/game/client/gui/message_box.cc @@ -75,17 +75,17 @@ void gui::message_box::reset(void) buttons.clear(); } -void gui::message_box::set_title(const char* title) +void gui::message_box::set_title(std::string_view title) { str_title = gui::language::resolve(title); } -void gui::message_box::set_subtitle(const char* subtitle) +void gui::message_box::set_subtitle(std::string_view subtitle) { str_subtitle = gui::language::resolve(subtitle); } -void gui::message_box::add_button(const char* text, const message_box_action& action) +void gui::message_box::add_button(std::string_view text, const message_box_action& action) { Button button = {}; button.str_title = std::format("{}###MessageBox_Button{}", gui::language::resolve(text), buttons.size()); -- cgit