Codechange: use std::string_view for 'x-of-many' settings

This commit is contained in:
Rubidium
2025-05-01 17:32:52 +02:00
committed by rubidium42
parent 7805c1c189
commit 5c7b04a0c2
12 changed files with 25 additions and 25 deletions

View File

@@ -448,7 +448,7 @@ static bool CheckRoadSide(int32_t &)
static std::optional<uint32_t> ConvertLandscape(std::string_view value)
{
/* try with the old values */
static std::vector<std::string> _old_landscape_values{"normal", "hilly", "desert", "candy"};
static std::vector<std::string_view> _old_landscape_values{"normal", "hilly", "desert", "candy"};
return OneOfManySettingDesc::ParseSingleValue(value, _old_landscape_values);
}