diff options
author | Einar Johan Trøan Sømåen | 2012-06-25 17:24:00 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-06-25 17:24:00 +0200 |
commit | 580ed9026f0f9e0cff5f6e9818c9e2248a0ae4e5 (patch) | |
tree | 2983b8553036efa297299a19af062698d3f3a16b /engines/wintermute | |
parent | c4c3f724a6bcd7cdb80c333fae661f2b10c6aaf5 (diff) | |
download | scummvm-rg350-580ed9026f0f9e0cff5f6e9818c9e2248a0ae4e5.tar.gz scummvm-rg350-580ed9026f0f9e0cff5f6e9818c9e2248a0ae4e5.tar.bz2 scummvm-rg350-580ed9026f0f9e0cff5f6e9818c9e2248a0ae4e5.zip |
WINTERMUTE: Remove std::replace from PathUtil
Diffstat (limited to 'engines/wintermute')
-rw-r--r-- | engines/wintermute/utils/PathUtil.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/wintermute/utils/PathUtil.cpp b/engines/wintermute/utils/PathUtil.cpp index 284db8acfc..ba432019eb 100644 --- a/engines/wintermute/utils/PathUtil.cpp +++ b/engines/wintermute/utils/PathUtil.cpp @@ -37,7 +37,10 @@ namespace WinterMute { AnsiString PathUtil::UnifySeparators(const AnsiString &path) {
AnsiString newPath = path;
- std::replace(newPath.begin(), newPath.end(), L'\\', L'/');
+ AnsiString::iterator it;
+ for (it = newPath.begin(); it != newPath.end(); it++) {
+ if (*it == '\\') *it = '/';
+ }
return newPath;
}
|