mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-27 08:45:00 +01:00
A couple more nullopt returns (#15422)
This commit is contained in:
@@ -169,7 +169,7 @@ namespace String
|
||||
{
|
||||
return { 4 };
|
||||
}
|
||||
return {};
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -419,7 +419,7 @@ private:
|
||||
return static_cast<int32_t>(i);
|
||||
}
|
||||
}
|
||||
return {};
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
size_t GetLoadedObjectIndex(const Object* object)
|
||||
|
||||
@@ -1410,5 +1410,5 @@ std::optional<uint8_t> GetStyleFromMusicIdentifier(std::string_view identifier)
|
||||
{
|
||||
return std::distance(std::begin(_musicStyles), it);
|
||||
}
|
||||
return {};
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user