summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Gen.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2005-01-13 17:12:55 +0000
committerMark Spruiell <mes@zeroc.com>2005-01-13 17:12:55 +0000
commitd8ca167aa1d969597e24f7353ce2575ce187b833 (patch)
tree6104251112c9f43532c957141e685da911d6d642 /cpp/src/slice2cpp/Gen.cpp
parentnormalize paths (diff)
downloadice-d8ca167aa1d969597e24f7353ce2575ce187b833.tar.bz2
ice-d8ca167aa1d969597e24f7353ce2575ce187b833.tar.xz
ice-d8ca167aa1d969597e24f7353ce2575ce187b833.zip
bug fix for output directory containing backslashes
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 4acce15af93..b6e8243cecb 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -42,6 +42,10 @@ Slice::Gen::Gen(const string& name, const string& base, const string& headerExte
}
string::size_type pos = _base.rfind('/');
+ if(pos == string::npos)
+ {
+ pos = _base.rfind('\\');
+ }
if(pos != string::npos)
{
_base.erase(0, pos + 1);