aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-06-25 17:24:00 +0200
committerEinar Johan Trøan Sømåen2012-06-25 17:24:00 +0200
commit580ed9026f0f9e0cff5f6e9818c9e2248a0ae4e5 (patch)
tree2983b8553036efa297299a19af062698d3f3a16b
parentc4c3f724a6bcd7cdb80c333fae661f2b10c6aaf5 (diff)
downloadscummvm-rg350-580ed9026f0f9e0cff5f6e9818c9e2248a0ae4e5.tar.gz
scummvm-rg350-580ed9026f0f9e0cff5f6e9818c9e2248a0ae4e5.tar.bz2
scummvm-rg350-580ed9026f0f9e0cff5f6e9818c9e2248a0ae4e5.zip
WINTERMUTE: Remove std::replace from PathUtil
-rw-r--r--engines/wintermute/utils/PathUtil.cpp5
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;
}