1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-26 20:37:25 +00:00

Use std::transform

This commit is contained in:
Evil Eye 2023-06-01 18:33:13 +02:00
parent e791d2b498
commit e8ddccaefe

View File

@ -16,8 +16,7 @@ namespace VFS::Path
inline void normalizeFilenameInPlace(std::string& name) inline void normalizeFilenameInPlace(std::string& name)
{ {
for (char& ch : name) std::transform(name.begin(), name.end(), name.begin(), normalize);
ch = normalize(ch);
} }
/// Normalize the given filename, making slashes/backslashes consistent, and lower-casing. /// Normalize the given filename, making slashes/backslashes consistent, and lower-casing.