Use more std::span arguments

This commit is contained in:
Sintendo
2026-02-01 09:20:46 +01:00
parent c05b231015
commit f6a67aa6e7
79 changed files with 164 additions and 146 deletions

View File

@@ -218,9 +218,9 @@ std::optional<Disc> ParseString(std::string_view xml, std::string xml_path)
return disc;
}
static bool CheckRegion(const std::vector<std::string>& xml_regions, std::string_view game_region)
static bool CheckRegion(std::span<const std::string> xml_regions, std::string_view game_region)
{
if (xml_regions.begin() == xml_regions.end())
if (xml_regions.empty())
return true;
for (const auto& region : xml_regions)