[interface-discuss] Re: [interface-announce] info/cws presfixes08 : comphelper::make_shared_from_UNO()

2005-10-21 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Daniel, > /** Makes a boost::shared_ptr from a ref-counted UNO object pointer. > This makes sense if the object is used via UNO (implementing some X > interface) and also internally using its implementation class, e.g. Hmm. What's the advantage of this over using ::rtl::Reference< My

Re: [interface-discuss] Re: [interface-announce] info/cws presfixes08 : comphelper::make_shared_from_UNO()

2005-10-21 Thread Daniel Boelzle
Hi Frank, > Hmm. What's the advantage of this over using > ::rtl::Reference< MyUnoImpl > ptr( new MyUnoImpl ); > xUno->callingUno( uno::Reference( ptr.get() ) ); > takeNonUnoPtr( ptr ); There is no advantage over the example you gave. But it eases the implementation if you _already have_ a