conversion operators for UNO

Miklos Vajna vmiklos at suse.cz
Thu Apr 25 02:00:46 PDT 2013


On Thu, Apr 25, 2013 at 10:35:29AM +0200, Noel Grandin <noel at peralex.com> wrote:
> Then we typically have C++ code that looks like
>   void foo(Reference<A> a)
>   void bar() {
>       Reference<B> b = ....
>       methodThatTakesA( Reference<A>(b, UNO_QUERY_THROW) );
>   }
> 
> I want to change things so that I can write:
>   void bar() {
>       Reference<B> b = ....
>       methodThatTakesA( b );

Hmm, and then how would you decide if UNO_QUERY or UNO_QUERY_THROW is
desired?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130425/552fe69a/attachment.pgp>


More information about the LibreOffice mailing list