summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cppe/Gen.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2008-04-21 17:58:38 +0200
committerBenoit Foucher <benoit@zeroc.com>2008-04-21 17:58:38 +0200
commit094286e06f0ff154f20fcccce0c71068a3d216d5 (patch)
tree606797928608baa057fe9a9ea096622e0eb37930 /cpp/src/slice2cppe/Gen.cpp
parentFixed potential IceUtil::NullHandleException (diff)
downloadice-094286e06f0ff154f20fcccce0c71068a3d216d5.tar.bz2
ice-094286e06f0ff154f20fcccce0c71068a3d216d5.tar.xz
ice-094286e06f0ff154f20fcccce0c71068a3d216d5.zip
Fixed bug 3011
Diffstat (limited to 'cpp/src/slice2cppe/Gen.cpp')
-rw-r--r--cpp/src/slice2cppe/Gen.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/cpp/src/slice2cppe/Gen.cpp b/cpp/src/slice2cppe/Gen.cpp
index 9ecaf80640a..8baa671d1e6 100644
--- a/cpp/src/slice2cppe/Gen.cpp
+++ b/cpp/src/slice2cppe/Gen.cpp
@@ -8,6 +8,7 @@
// **********************************************************************
#include <Gen.h>
+#include <Slice/Util.h>
#include <Slice/CPlusPlusUtil.h>
#include <Slice/SignalHandler.h>
#include <IceUtil/Functional.h>
@@ -89,10 +90,7 @@ Slice::Gen::Gen(const string& name, const string& base, const string& headerExte
for(vector<string>::iterator p = _includePaths.begin(); p != _includePaths.end(); ++p)
{
- if(p->length() && (*p)[p->length() - 1] != '/')
- {
- *p += '/';
- }
+ *p = fullPath(*p);
}
string::size_type pos = _base.find_last_of("/\\");