mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-29 03:36:40 +00:00
Use std::transform
This commit is contained in:
parent
e791d2b498
commit
e8ddccaefe
1 changed files with 1 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue