From e8ddccaefec4118f64506c8f145ac7aa66e239a9 Mon Sep 17 00:00:00 2001 From: Evil Eye Date: Thu, 1 Jun 2023 18:33:13 +0200 Subject: [PATCH] Use std::transform --- components/vfs/pathutil.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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.