diff options
author | Benoit Foucher <benoit@zeroc.com> | 2013-01-04 10:50:28 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2013-01-04 10:50:28 +0100 |
commit | 8b4674dbca704b9ffb48cd9a4fee43211e774cce (patch) | |
tree | ac55936ef4ba7b52ed8835c011b7c59cf2d1d3ee /cpp/src/slice2cpp/Gen.cpp | |
parent | Fixed(ICE-5147) - Fix python scripts to not raise strings anymore (diff) | |
download | ice-8b4674dbca704b9ffb48cd9a4fee43211e774cce.tar.bz2 ice-8b4674dbca704b9ffb48cd9a4fee43211e774cce.tar.xz ice-8b4674dbca704b9ffb48cd9a4fee43211e774cce.zip |
ICE-4938: Super compact enoding
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-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 d2d650df4e6..336cd1e6cbe 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -3229,7 +3229,7 @@ Slice::Gen::ObjectDeclVisitor::visitClassDecl(const ClassDeclPtr& p) H << nl << _dllExport << "::Ice::Object* upCast(" << scoped << "*);"; H << nl << "typedef ::IceInternal::Handle< " << scoped << "> " << p->name() << "Ptr;"; H << nl << "typedef ::IceInternal::ProxyHandle< ::IceProxy" << scoped << "> " << p->name() << "Prx;"; - H << nl << _dllExport << "void __patch(" << p->name() << "Ptr&, ::Ice::ObjectPtr&);"; + H << nl << _dllExport << "void __patch(" << p->name() << "Ptr&, const ::Ice::ObjectPtr&);"; } else { @@ -4105,7 +4105,7 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p) { C << sp << nl << "void " << (_dllExport.empty() ? "" : "ICE_DECLSPEC_EXPORT "); - C << nl << scope.substr(2) << "__patch(" << p->name() << "Ptr& handle, ::Ice::ObjectPtr& v)"; + C << nl << scope.substr(2) << "__patch(" << p->name() << "Ptr& handle, const ::Ice::ObjectPtr& v)"; C << sb; C << nl << "handle = " << scope << p->name() << "Ptr::dynamicCast(v);"; C << nl << "if(v && !handle)"; |