1
0
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:
Hielke Morsink
2021-09-16 23:05:50 +02:00
committed by GitHub
parent 427bb7b330
commit fc8e0cf9d7
3 changed files with 3 additions and 3 deletions

View File

@@ -169,7 +169,7 @@ namespace String
{
return { 4 };
}
return {};
return std::nullopt;
}
/**

View File

@@ -419,7 +419,7 @@ private:
return static_cast<int32_t>(i);
}
}
return {};
return std::nullopt;
}
size_t GetLoadedObjectIndex(const Object* object)

View File

@@ -1410,5 +1410,5 @@ std::optional<uint8_t> GetStyleFromMusicIdentifier(std::string_view identifier)
{
return std::distance(std::begin(_musicStyles), it);
}
return {};
return std::nullopt;
}