Re: [orbitcpp-list] [patch] Wrap returned objects
Status: Beta
Brought to you by:
philipd
From: <mu...@t-...> - 2002-03-09 21:17:24
|
Please commit. ORBit2 cpp branch patches should go to the orbit list. On Sat, 2002-03-09 at 21:31, ERDI Gergo wrote: > 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 7 Mar 2002 17:33:41 -0000 1.1.2.6 > +++ cpp/types.cc 9 Mar 2002 20:27:18 -0000 > @@ -1192,7 +1192,9 @@ > IDLTypedef const *activeTypedef =3D NULL) const { > // must return stub ptr and not ptr in order to work when smart pointer= s are used > ostr > - << indent << "return reinterpret_cast< " << getQualifiedCPPStub() << "= *>(_retval);" << endl; > + << indent << getQualifiedCPPStub() << "* _cpp_retval =3D new " << getQ= ualifiedCPPStub () << "(_retval);" << endl > + << indent << "CORBA_Object_release (_retval, 0);" << endl > + << indent << "return _cpp_retval;" << endl; > } > =20 > =20 >=20 > --=20 > .--=3D ULLA! =3D----------------------. `We are not here to give use= rs what > \ http://cactus.rulez.org \ they want' -- RMS, at GUADEC 2= 001 > `-----=3D ca...@ca... =3D--' > Kicsi, s=E1rga =E9s kapar: k=EDnai n=F5gy=F3gy=E1sz. >=20 >=20 > _______________________________________________ > orbitcpp-list mailing list > orb...@li... > https://lists.sourceforge.net/lists/listinfo/orbitcpp-list --=20 Murray Cumming mu...@us... www.murrayc.com |