summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/GenUtil.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-06-21 00:38:51 +0000
committerMarc Laukien <marc@zeroc.com>2001-06-21 00:38:51 +0000
commiteb184aa9dc6f1acc75c9a9cc483fbd8d0b3b8b71 (patch)
treea96e8d8a6ede52dd2ff279217634d97d4e027cc9 /cpp/src/slice2cpp/GenUtil.cpp
parentwin fixes (diff)
downloadice-eb184aa9dc6f1acc75c9a9cc483fbd8d0b3b8b71.tar.bz2
ice-eb184aa9dc6f1acc75c9a9cc483fbd8d0b3b8b71.tar.xz
ice-eb184aa9dc6f1acc75c9a9cc483fbd8d0b3b8b71.zip
cleanup
Diffstat (limited to 'cpp/src/slice2cpp/GenUtil.cpp')
-rw-r--r--cpp/src/slice2cpp/GenUtil.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/cpp/src/slice2cpp/GenUtil.cpp b/cpp/src/slice2cpp/GenUtil.cpp
index 08eb26129d0..1fa9a009d91 100644
--- a/cpp/src/slice2cpp/GenUtil.cpp
+++ b/cpp/src/slice2cpp/GenUtil.cpp
@@ -91,6 +91,10 @@ Slice::inputTypeToString(const Type_ptr& type)
if(proxy)
return "const " + proxy -> _class() -> scoped() + "_prx&";
+ Native_ptr native = Native_ptr::dynamicCast(type);
+ if(native)
+ return native -> scoped();
+
Contained_ptr contained = Contained_ptr::dynamicCast(type);
if(contained)
return "const " + contained -> scoped() + "&";
@@ -129,6 +133,10 @@ Slice::outputTypeToString(const Type_ptr& type)
if(proxy)
return proxy -> _class() -> scoped() + "_prx&";
+ Native_ptr native = Native_ptr::dynamicCast(type);
+ if(native)
+ return native -> scoped();
+
Contained_ptr contained = Contained_ptr::dynamicCast(type);
if(contained)
return contained -> scoped() + "&";
@@ -156,6 +164,9 @@ Slice::writeMarshalUnmarshalCode(Output& out, const Type_ptr& type,
return;
}
+ Native_ptr native = Native_ptr::dynamicCast(type);
+ assert(!native); // TODO
+
ClassDecl_ptr cl = ClassDecl_ptr::dynamicCast(type);
if(cl)
{