mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-10-01 00:50:15 -04:00
[General] Use std::replace() instead for-each in Utils::convertPath()
This commit is contained in:
parent
90387aedea
commit
3d294500ba
@ -32,9 +32,7 @@ std::string Utils::convertPath(std::string str)
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32) || defined(__APPLE__)
|
||||
for (auto &ch : str)
|
||||
if (ch == '/')
|
||||
ch = _SEP_;
|
||||
replace(str.begin(), str.end(), '/', _SEP_);
|
||||
#endif //defined(_WIN32) || defined(__APPLE__)
|
||||
return str;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user