Use std::transform

revert-6246b479
Evil Eye 2 years ago
parent e791d2b498
commit e8ddccaefe

@ -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.

Loading…
Cancel
Save