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:
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…
x
Reference in New Issue
Block a user