summaryrefslogtreecommitdiff
path: root/Source/Core/UICommon/ResourcePack/ResourcePack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/UICommon/ResourcePack/ResourcePack.cpp')
-rw-r--r--Source/Core/UICommon/ResourcePack/ResourcePack.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/Core/UICommon/ResourcePack/ResourcePack.cpp b/Source/Core/UICommon/ResourcePack/ResourcePack.cpp
index 659e8808a1..c55377c67b 100644
--- a/Source/Core/UICommon/ResourcePack/ResourcePack.cpp
+++ b/Source/Core/UICommon/ResourcePack/ResourcePack.cpp
@@ -170,10 +170,9 @@ bool ResourcePack::Install(const std::string& path)
continue;
const std::string texture_name = texture_zip_path.substr(texture_zip_path_prefix.size());
- auto texture_it = std::find_if(
- m_textures.cbegin(), m_textures.cend(), [&texture_name](const std::string& texture) {
- return mz_path_compare_wc(texture.c_str(), texture_name.c_str(), 1) == MZ_OK;
- });
+ auto texture_it = std::ranges::find_if(m_textures, [&texture_name](const std::string& texture) {
+ return mz_path_compare_wc(texture.c_str(), texture_name.c_str(), 1) == MZ_OK;
+ });
if (texture_it == m_textures.cend())
continue;
const auto texture = *texture_it;