mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-05-07 06:00:58 -04:00
Use more std::span arguments
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user