summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/VolumeVerifier.cpp
diff options
context:
space:
mode:
authormitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-09-21 18:09:34 -0700
committermitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-10-10 15:28:11 -0700
commite4fb837f4bf886e9688ea3c12e081a2d7b4e6a75 (patch)
tree1b16603454de34fd05e2ac49a9ba4d8cdfcb3260 /Source/Core/DiscIO/VolumeVerifier.cpp
parent6ca7e2856bd704a687e8408bf7ed92b23672c7fa (diff)
Modernize `std::find_if` with ranges
In BTEmu.cpp, `std::mem_fn` was not necessary for the predicate to compile.
Diffstat (limited to 'Source/Core/DiscIO/VolumeVerifier.cpp')
-rw-r--r--Source/Core/DiscIO/VolumeVerifier.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/VolumeVerifier.cpp b/Source/Core/DiscIO/VolumeVerifier.cpp
index 5a4a9c6856..e6da0fcc3e 100644
--- a/Source/Core/DiscIO/VolumeVerifier.cpp
+++ b/Source/Core/DiscIO/VolumeVerifier.cpp
@@ -472,8 +472,7 @@ std::vector<Partition> VolumeVerifier::CheckPartitions()
AddProblem(Severity::High, Common::GetStringT("The install partition is missing."));
if (ShouldHaveMasterpiecePartitions() &&
- types.cend() ==
- std::find_if(types.cbegin(), types.cend(), [](u32 type) { return type >= 0xFF; }))
+ types.cend() == std::ranges::find_if(types, [](u32 type) { return type >= 0xFF; }))
{
// i18n: This string is referring to a game mode in Super Smash Bros. Brawl called Masterpieces
// where you play demos of NES/SNES/N64 games. Official translations: