Re: [api-dev] Usage of UNO_QUERY_THROW

2008-12-11 Thread Frank Schönheit - Sun Microsystems Germany
Hi Daniel,

> Ah, by studying the sources, I learned that it should be
> 
> uno::Reference< XSomething > xS2( xS1, uno::UNO_SET_THROW );
> 
> Right?

Right.

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



Re: [api-dev] Usage of UNO_QUERY_THROW

2008-12-11 Thread Daniel Rentz

Daniel Rentz schrieb:

Hi,

does the following snippet throw an exception?


uno::Reference< XSomething > xS1;
uno::Reference< XSomething > xS2( xS1, uno::UNO_QUERY_THROW );


Here, xS2 querries the same interface type from xS1. The intention is to 
check that xS1 is not null.



Ah, by studying the sources, I learned that it should be


uno::Reference< XSomething > xS2( xS1, uno::UNO_SET_THROW );


Right?

Daniel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[api-dev] Usage of UNO_QUERY_THROW

2008-12-11 Thread Daniel Rentz

Hi,

does the following snippet throw an exception?


uno::Reference< XSomething > xS1;
uno::Reference< XSomething > xS2( xS1, uno::UNO_QUERY_THROW );


Here, xS2 querries the same interface type from xS1. The intention is to 
check that xS1 is not null.




Daniel

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]