Use more std::span arguments

This commit is contained in:
Sintendo committed 2026-03-23 23:55:09 +01:00
1 parent c05b231015
commit f6a67aa6e7
79 files changed
+164 -146

No files matched your search

+2 -2
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)