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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user