mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-27 12:40:25 +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)
|
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…
Reference in a new issue