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/progress_bar.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'game/client/gui/progress_bar.cc') diff --git a/game/client/gui/progress_bar.cc b/game/client/gui/progress_bar.cc index 2bfb69e..8be2f8c 100644 --- a/game/client/gui/progress_bar.cc +++ b/game/client/gui/progress_bar.cc @@ -99,12 +99,12 @@ void gui::progress_bar::reset(void) button_action = nullptr; } -void gui::progress_bar::set_title(const char* title) +void gui::progress_bar::set_title(std::string_view title) { str_title = gui::language::resolve(title); } -void gui::progress_bar::set_button(const char* text, const progress_bar_action& action) +void gui::progress_bar::set_button(std::string_view text, const progress_bar_action& action) { str_button = std::format("{}###ProgressBar_Button", gui::language::resolve(text)); button_action = action; -- cgit