summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp/Gen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 54091b39450..fd34162a680 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -423,7 +423,6 @@ Slice::Gen::generate(const UnitPtr& p)
if(p->hasContentsWithMetaData("preserve-slice"))
{
H << "\n#include <Ice/SlicedDataF.h>";
-
C << "\n#include <Ice/SlicedData.h>";
}
@@ -4165,7 +4164,7 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p)
C << nl << "handle = " << scope << p->name() << "Ptr::dynamicCast(v);";
C << nl << "if(v && !handle)";
C << sb;
- C << nl << "IceInternal::Ex::throwUOE(" << scoped << "::ice_staticId(), v->ice_id());";
+ C << nl << "IceInternal::Ex::throwUOE(" << scoped << "::ice_staticId(), v);";
C << eb;
C << eb;