Codechange: return std::string_view for Textbuf::GetText()

This commit is contained in:
Rubidium
2025-04-29 17:31:32 +02:00
committed by rubidium42
parent 261e09a549
commit ef71ce0a9d
12 changed files with 52 additions and 48 deletions

View File

@@ -1102,7 +1102,7 @@ struct NetworkStartServerWindow : public Window {
bool CheckServerName()
{
std::string str = this->name_editbox.text.GetText();
std::string str{this->name_editbox.text.GetText()};
if (!NetworkValidateServerName(str)) return false;
SetSettingValue(GetSettingFromName("network.server_name")->AsStringSetting(), std::move(str));