1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 21:13:05 +01:00

Rename String::Parse to String::parse, use from_chars instead

This commit is contained in:
ζeh Matt
2025-09-28 22:23:21 +03:00
parent a43888a98b
commit c41d07e40c
6 changed files with 17 additions and 30 deletions

View File

@@ -149,7 +149,7 @@ ShortcutInput::ShortcutInput(std::string_view value)
}
else
{
auto number = String::Parse<int32_t>(rem);
auto number = String::parse<int32_t>(rem);
if (number.has_value())
{
Kind = InputDeviceKind::JoyButton;
@@ -161,7 +161,7 @@ ShortcutInput::ShortcutInput(std::string_view value)
else if (String::startsWith(rem, "MOUSE ", true))
{
rem = rem.substr(6);
auto number = String::Parse<int32_t>(rem);
auto number = String::parse<int32_t>(rem);
if (number)
{
Kind = InputDeviceKind::Mouse;