diff options
author | Mark Spruiell <mes@zeroc.com> | 2005-01-13 17:12:55 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2005-01-13 17:12:55 +0000 |
commit | d8ca167aa1d969597e24f7353ce2575ce187b833 (patch) | |
tree | 6104251112c9f43532c957141e685da911d6d642 /cpp/src/slice2cpp/Gen.cpp | |
parent | normalize paths (diff) | |
download | ice-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.cpp | 4 |
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); |