diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 197a2d61ca1..93ff60c61b2 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -1514,11 +1514,11 @@ Slice::Gen::ObjectVisitor::visitOperation(const Operation_ptr& p) C << nl << "catch(" << exceptionTypeToString(*r) << " __ex)"; C << sb; C << nl << "__os -> write(" << cnt++ << ");"; - if(ClassDef_ptr::dynamicCast(*r) || + if(ClassDecl_ptr::dynamicCast(*r) || Proxy_ptr::dynamicCast(*r)) { string s = "static_cast< "; - s += typeToString(*r); + s += inputTypeToString(*r); s += ">(__ex)"; writeMarshalUnmarshalCode(C, *r, s, true); } |