diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-04-07 13:48:16 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-04-07 13:48:16 -0230 |
commit | 058f51cd8674760cac8b7c0b04afa5915af9f667 (patch) | |
tree | f7c9f6039aa2795222e7dbfc0a7babab13e2dee9 /cpp/src/Slice/Util.cpp | |
parent | updating CHANGES for bug 3739 (diff) | |
download | ice-058f51cd8674760cac8b7c0b04afa5915af9f667.tar.bz2 ice-058f51cd8674760cac8b7c0b04afa5915af9f667.tar.xz ice-058f51cd8674760cac8b7c0b04afa5915af9f667.zip |
Bug 3832 - slice conmpiler issues with UNC paths
Diffstat (limited to 'cpp/src/Slice/Util.cpp')
-rw-r--r-- | cpp/src/Slice/Util.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/Slice/Util.cpp b/cpp/src/Slice/Util.cpp index dffbef6523b..916bebbea03 100644 --- a/cpp/src/Slice/Util.cpp +++ b/cpp/src/Slice/Util.cpp @@ -26,8 +26,9 @@ static string normalizePath(const string& path) { string result = path; + replace(result.begin(), result.end(), '\\', '/'); - string::size_type pos; + string::size_type startReplace = 0; #ifdef _WIN32 // @@ -39,6 +40,7 @@ normalizePath(const string& path) startReplace = 2; } #endif + string::size_type pos; while((pos = result.find("//", startReplace)) != string::npos) { result.replace(pos, 2, "/"); |