summaryrefslogtreecommitdiff
path: root/shell/source/win32/zipfile/zipfile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'shell/source/win32/zipfile/zipfile.cxx')
-rw-r--r--shell/source/win32/zipfile/zipfile.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/shell/source/win32/zipfile/zipfile.cxx b/shell/source/win32/zipfile/zipfile.cxx
index 0cf7f204cf7e..f7f8ccd23806 100644
--- a/shell/source/win32/zipfile/zipfile.cxx
+++ b/shell/source/win32/zipfile/zipfile.cxx
@@ -535,10 +535,8 @@ bool ZipFile::HasContent(const std::string &ContentName) const
//case in-sensitive as it is not defined that such
//names must be handled case sensitive
DirectoryPtr_t dir = GetDirectory();
- Directory_t::iterator iter =
- std::find_if(dir->begin(), dir->end(), internal::stricmp(ContentName));
- return (iter != dir->end());
+ return std::any_of(dir->begin(), dir->end(), internal::stricmp(ContentName));
}