[orbitcpp-list] [patch] Wrap returned objects
Status: Beta
Brought to you by:
philipd
From: ERDI G. <ca...@ca...> - 2002-03-09 20:31:39
|
Index: cpp/types.cc =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/gnome/ORBit2/src/idl-compiler/cpp/Attic/types.cc,v retrieving revision 1.1.2.6 diff -u -u -r1.1.2.6 types.cc --- cpp/types.cc=097 Mar 2002 17:33:41 -0000=091.1.2.6 +++ cpp/types.cc=099 Mar 2002 20:27:18 -0000 @@ -1192,7 +1192,9 @@ =09=09=09=09=09=09=09=09=09=09=09 IDLTypedef const *activeTypedef =3D NUL= L) const { =09// must return stub ptr and not ptr in order to work when smart pointer= s are used =09ostr -=09=09<< indent << "return reinterpret_cast< " << getQualifiedCPPStub() <<= " *>(_retval);" << endl; +=09=09<< indent << getQualifiedCPPStub() << "* _cpp_retval =3D new " << ge= tQualifiedCPPStub () << "(_retval);" << endl +=09=09<< indent << "CORBA_Object_release (_retval, 0);" << endl +=09=09<< indent << "return _cpp_retval;" << endl; } =20 =20 --=20 .--=3D ULLA! =3D----------------------. `We are not here to give users= what \ http://cactus.rulez.org \ they want' -- RMS, at GUADEC 200= 1 `-----=3D ca...@ca... =3D--' Kicsi, s=E1rga =E9s kapar: k=EDnai n=F5gy=F3gy=E1sz. |