summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/VolumeVerifier.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2024-10-15 17:08:55 +0200
committerGitHub <noreply@github.com>2024-10-15 17:08:55 +0200
commit07605bf67c6815510688ebf3e71583624c3bfab0 (patch)
tree45d3c7260daf088cbf44febda937f1a4c34c5141 /Source/Core/DiscIO/VolumeVerifier.cpp
parentef8b753cd778179e1c2980b1ec2615f80a314714 (diff)
parente572081ac322253d65bf767a88887fedd4e97c2e (diff)
Merge pull request #13090 from mitaclaw/ranges-modernization-1-trivial
Ranges Algorithms Modernization - Trivial
Diffstat (limited to 'Source/Core/DiscIO/VolumeVerifier.cpp')
-rw-r--r--Source/Core/DiscIO/VolumeVerifier.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/DiscIO/VolumeVerifier.cpp b/Source/Core/DiscIO/VolumeVerifier.cpp
index 23d8592af5..d510aa3266 100644
--- a/Source/Core/DiscIO/VolumeVerifier.cpp
+++ b/Source/Core/DiscIO/VolumeVerifier.cpp
@@ -721,8 +721,7 @@ bool VolumeVerifier::ShouldHaveChannelPartition() const
};
static_assert(std::ranges::is_sorted(channel_discs));
- return std::binary_search(channel_discs.cbegin(), channel_discs.cend(),
- std::string_view(m_volume.GetGameID()));
+ return std::ranges::binary_search(channel_discs, m_volume.GetGameID());
}
bool VolumeVerifier::ShouldHaveInstallPartition() const
@@ -754,8 +753,7 @@ bool VolumeVerifier::ShouldBeDualLayer() const
};
static_assert(std::ranges::is_sorted(dual_layer_discs));
- return std::binary_search(dual_layer_discs.cbegin(), dual_layer_discs.cend(),
- std::string_view(m_volume.GetGameID()));
+ return std::ranges::binary_search(dual_layer_discs, m_volume.GetGameID());
}
void VolumeVerifier::CheckVolumeSize()