diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-10-01 11:41:25 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2025-01-01 09:52:03 -0800 |
| commit | 527841f1df2f4411a1f64ae439275cedcfc13bfa (patch) | |
| tree | d365937dd6e3293d17a25045c5e389aa0f233dc3 /Source/Core/DiscIO | |
| parent | d92c68e1de481b509d92bbdd68f83c9a92f254aa (diff) | |
Simplify `std::search` with `Common::ContainsSubrange`
Diffstat (limited to 'Source/Core/DiscIO')
| -rw-r--r-- | Source/Core/DiscIO/VolumeVerifier.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/Core/DiscIO/VolumeVerifier.cpp b/Source/Core/DiscIO/VolumeVerifier.cpp index 35b0b5670d..a4725cbbe2 100644 --- a/Source/Core/DiscIO/VolumeVerifier.cpp +++ b/Source/Core/DiscIO/VolumeVerifier.cpp @@ -144,11 +144,8 @@ RedumpVerifier::DownloadStatus RedumpVerifier::DownloadDatfile(const std::string if (File::Exists(output_path)) return DownloadStatus::FailButOldCacheAvailable; - const std::string system_not_available_message = "System \"" + system + "\" doesn't exist."; const bool system_not_available_match = - result->end() != std::search(result->begin(), result->end(), - system_not_available_message.begin(), - system_not_available_message.end()); + Common::ContainsSubrange(*result, "System \"" + system + "\" doesn't exist."); return system_not_available_match ? DownloadStatus::SystemNotAvailable : DownloadStatus::Fail; } |
