mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 20:49:56 +00:00
[General] Use std::replace() instead for-each in Utils::convertPath()
This commit is contained in:
parent
90387aedea
commit
3d294500ba
1 changed files with 1 additions and 3 deletions
|
@ -32,9 +32,7 @@ std::string Utils::convertPath(std::string str)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(__APPLE__)
|
#if defined(_WIN32) || defined(__APPLE__)
|
||||||
for (auto &ch : str)
|
replace(str.begin(), str.end(), '/', _SEP_);
|
||||||
if (ch == '/')
|
|
||||||
ch = _SEP_;
|
|
||||||
#endif //defined(_WIN32) || defined(__APPLE__)
|
#endif //defined(_WIN32) || defined(__APPLE__)
|
||||||
return str;
|
return str;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue