Base: apply std::ranges

This commit is contained in:
bofdahof
2025-03-12 17:46:52 +10:00
committed by Chris Hennes
parent 59c3bbe5c2
commit 8ba49db74e
3 changed files with 3 additions and 5 deletions

View File

@@ -333,7 +333,7 @@ bool FileInfo::hasExtension(const char* Ext) const
bool FileInfo::hasExtension(std::initializer_list<const char*> Exts) const
{
return std::any_of(Exts.begin(), Exts.end(), [this](const char* ext) {
return std::ranges::any_of(Exts, [this](const char* ext) {
return hasExtension(ext);
});
}