summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2003-11-19 23:40:58 +0000
committerMark Spruiell <mes@zeroc.com>2003-11-19 23:40:58 +0000
commit0fba7183fdc07d4c056ed5f175ddcbb60923f1fc (patch)
tree50e03f621dc527beec101bce283edd00bacdb52a /cpp
parentmistakenly emitted <transform> instead of <init> for new sequence types (diff)
downloadice-0fba7183fdc07d4c056ed5f175ddcbb60923f1fc.tar.bz2
ice-0fba7183fdc07d4c056ed5f175ddcbb60923f1fc.tar.xz
ice-0fba7183fdc07d4c056ed5f175ddcbb60923f1fc.zip
bug fix - watch for proxy types
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/Transform/TransformUtil.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/cpp/src/Transform/TransformUtil.cpp b/cpp/src/Transform/TransformUtil.cpp
index e2f835115a3..e6109a8723c 100644
--- a/cpp/src/Transform/TransformUtil.cpp
+++ b/cpp/src/Transform/TransformUtil.cpp
@@ -27,7 +27,15 @@ Transform::typeName(const Slice::TypePtr& type)
else
{
Slice::ContainedPtr c = Slice::ContainedPtr::dynamicCast(type);
- assert(c);
- return c->scoped();
+ if(!c)
+ {
+ Slice::ProxyPtr p = Slice::ProxyPtr::dynamicCast(type);
+ c = p->_class();
+ return c->scoped() + "*";
+ }
+ else
+ {
+ return c->scoped();
+ }
}
}