Re: [api-dev] Re: Usage of UNO_QUERY_THROW

2008-12-16 Thread Frank Schönheit - Sun Microsystems Germany
Hi Daniel, What happens if UNO_QUERY_THROW is used instead? ... What is the reason you have introduced UNO_SET_THROW? It spares the queryInterface call. For a pattern like Reference XFoo xFoo = xBar-getSomeFoo(); // ensure that xFoo is not NULL, which would be a violation // of xBar's

Re: [api-dev] Re: Usage of UNO_QUERY_THROW

2008-12-16 Thread Daniel Rentz
Frank Schönheit - Sun Microsystems Germany schrieb: Hi Daniel, What happens if UNO_QUERY_THROW is used instead? ... What is the reason you have introduced UNO_SET_THROW? It spares the queryInterface call. For a pattern like Reference XFoo xFoo = xBar-getSomeFoo(); // ensure that xFoo

Re: [api-dev] Re: Usage of UNO_QUERY_THROW

2008-12-15 Thread Daniel Rentz
Frank Schönheit schrieb: Hi Michael, so i thought, what the heck is UNO_SET_THROW? it seems to do the same thing as UNO_QUERY_THROW, except it does not query, it only checks for NULL. hmm, according to opengrok's mere 50 results, i'm not the only one who never heard of it...