diff --git a/src/openrct2-ui/windows/ShortcutKeys.cpp b/src/openrct2-ui/windows/ShortcutKeys.cpp index cc3dc7a36d..1174191ac7 100644 --- a/src/openrct2-ui/windows/ShortcutKeys.cpp +++ b/src/openrct2-ui/windows/ShortcutKeys.cpp @@ -159,7 +159,7 @@ private: struct ShortcutStringPair { std::string ShortcutId; - StringId StringId = STR_NONE; + ::StringId StringId = STR_NONE; std::string CustomString; std::string Binding; }; diff --git a/src/openrct2/localisation/FormatCodes.cpp b/src/openrct2/localisation/FormatCodes.cpp index 1b4b9d569f..400800673f 100644 --- a/src/openrct2/localisation/FormatCodes.cpp +++ b/src/openrct2/localisation/FormatCodes.cpp @@ -37,7 +37,7 @@ static const EnumMap FormatTokenMap = { { "UINT16", FormatToken::UInt16, }, { "CURRENCY2DP", FormatToken::Currency2dp, }, { "CURRENCY", FormatToken::Currency, }, - { "STRINGID", FormatToken::StringId, }, + { "STRINGID", FormatToken::StringById, }, { "STRING", FormatToken::String, }, { "MONTHYEAR", FormatToken::MonthYear, }, { "MONTH", FormatToken::Month, }, @@ -116,7 +116,7 @@ bool FormatTokenTakesArgument(FormatToken token) case FormatToken::UInt16: case FormatToken::Currency2dp: case FormatToken::Currency: - case FormatToken::StringId: + case FormatToken::StringById: case FormatToken::String: case FormatToken::MonthYear: case FormatToken::Month: diff --git a/src/openrct2/localisation/FormatCodes.h b/src/openrct2/localisation/FormatCodes.h index fe9b9791ad..fd2d5cd601 100644 --- a/src/openrct2/localisation/FormatCodes.h +++ b/src/openrct2/localisation/FormatCodes.h @@ -35,7 +35,7 @@ enum class FormatToken UInt16, Currency2dp, Currency, - StringId, + StringById, String, MonthYear, Month, diff --git a/src/openrct2/localisation/Formatting.cpp b/src/openrct2/localisation/Formatting.cpp index c9f1e49629..dce404ef70 100644 --- a/src/openrct2/localisation/Formatting.cpp +++ b/src/openrct2/localisation/Formatting.cpp @@ -682,7 +682,7 @@ namespace OpenRCT2 { for (const auto& token : fmt) { - if (token.kind == FormatToken::StringId) + if (token.kind == FormatToken::StringById) { if (argIndex < args.size()) { @@ -782,7 +782,7 @@ namespace OpenRCT2 case FormatToken::Comma1dp16: anyArgs.push_back(ReadFromArgs(args)); break; - case FormatToken::StringId: + case FormatToken::StringById: { auto stringId = ReadFromArgs(args); anyArgs.push_back(stringId); diff --git a/src/openrct2/localisation/Formatting.h b/src/openrct2/localisation/Formatting.h index d9067db3d2..499827adda 100644 --- a/src/openrct2/localisation/Formatting.h +++ b/src/openrct2/localisation/Formatting.h @@ -233,7 +233,7 @@ namespace OpenRCT2 while (!it.eol()) { auto token = *it++; - if (token.kind == FormatToken::StringId) + if (token.kind == FormatToken::StringById) { if constexpr (std::is_integral()) { diff --git a/src/openrct2/title/TitleSequenceManager.cpp b/src/openrct2/title/TitleSequenceManager.cpp index 264dddbef6..c03228108e 100644 --- a/src/openrct2/title/TitleSequenceManager.cpp +++ b/src/openrct2/title/TitleSequenceManager.cpp @@ -32,7 +32,7 @@ namespace TitleSequenceManager { const utf8* ConfigId; const utf8* Filename; - StringId StringId; + ::StringId StringId; }; static constexpr PredefinedSequence PredefinedSequences[] = {