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 constraint ... it just felt wrong (since potentially too expensive) to do Reference< XFoo > xFoo( xBar->getSomeFoo(), UNO_QUERY_THROW ); UNO_SET_THROW is cheaper in this case. Ciao Frank -- - Frank Schönheit, Software Engineer frank.schoenh...@sun.com - - Sun Microsystems http://www.sun.com/staroffice - - OpenOffice.org Base http://dba.openoffice.org - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org