diff --git a/components/vfs/pathutil.hpp b/components/vfs/pathutil.hpp index 3ffc13b4e2..9a462612d3 100644 --- a/components/vfs/pathutil.hpp +++ b/components/vfs/pathutil.hpp @@ -16,8 +16,7 @@ namespace VFS::Path inline void normalizeFilenameInPlace(std::string& name) { - for (char& ch : name) - ch = normalize(ch); + std::transform(name.begin(), name.end(), name.begin(), normalize); } /// Normalize the given filename, making slashes/backslashes consistent, and lower-casing.