mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-01 11:15:13 +01:00
Rename String methods to use lowerCamelCase
This commit is contained in:
@@ -84,9 +84,9 @@ namespace OpenRCT2::Ui::Windows
|
||||
list_information_type = 0;
|
||||
|
||||
snprintf(_port, 7, "%u", Config::Get().network.DefaultPort);
|
||||
String::SafeStrCpy(_name, Config::Get().network.ServerName.c_str(), sizeof(_name));
|
||||
String::SafeStrCpy(_description, Config::Get().network.ServerDescription.c_str(), sizeof(_description));
|
||||
String::SafeStrCpy(_greeting, Config::Get().network.ServerGreeting.c_str(), sizeof(_greeting));
|
||||
String::safeUtf8Copy(_name, Config::Get().network.ServerName.c_str(), sizeof(_name));
|
||||
String::safeUtf8Copy(_description, Config::Get().network.ServerDescription.c_str(), sizeof(_description));
|
||||
String::safeUtf8Copy(_greeting, Config::Get().network.ServerGreeting.c_str(), sizeof(_greeting));
|
||||
}
|
||||
void OnMouseUp(WidgetIndex widgetIndex) override
|
||||
{
|
||||
@@ -175,7 +175,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
if (strcmp(_port, temp.c_str()) == 0)
|
||||
return;
|
||||
|
||||
String::SafeStrCpy(_port, temp.c_str(), sizeof(_port));
|
||||
String::safeUtf8Copy(_port, temp.c_str(), sizeof(_port));
|
||||
|
||||
// Don't allow negative/zero for port number
|
||||
tempPort = atoi(_port);
|
||||
@@ -191,7 +191,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
if (strcmp(_name, temp.c_str()) == 0)
|
||||
return;
|
||||
|
||||
String::SafeStrCpy(_name, temp.c_str(), sizeof(_name));
|
||||
String::safeUtf8Copy(_name, temp.c_str(), sizeof(_name));
|
||||
|
||||
// Don't allow empty server names
|
||||
if (_name[0] != '\0')
|
||||
@@ -206,7 +206,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
if (strcmp(_description, temp.c_str()) == 0)
|
||||
return;
|
||||
|
||||
String::SafeStrCpy(_description, temp.c_str(), sizeof(_description));
|
||||
String::safeUtf8Copy(_description, temp.c_str(), sizeof(_description));
|
||||
Config::Get().network.ServerDescription = _description;
|
||||
Config::Save();
|
||||
|
||||
@@ -216,7 +216,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
if (strcmp(_greeting, temp.c_str()) == 0)
|
||||
return;
|
||||
|
||||
String::SafeStrCpy(_greeting, temp.c_str(), sizeof(_greeting));
|
||||
String::safeUtf8Copy(_greeting, temp.c_str(), sizeof(_greeting));
|
||||
Config::Get().network.ServerGreeting = _greeting;
|
||||
Config::Save();
|
||||
|
||||
@@ -226,7 +226,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
if (strcmp(_password, temp.c_str()) == 0)
|
||||
return;
|
||||
|
||||
String::SafeStrCpy(_password, temp.c_str(), sizeof(_password));
|
||||
String::safeUtf8Copy(_password, temp.c_str(), sizeof(_password));
|
||||
|
||||
WidgetInvalidate(*this, WIDX_PASSWORD_INPUT);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user