I need to better understand our css::uno::Reference

Stephan Bergmann sbergman at redhat.com
Wed Jun 18 08:04:02 PDT 2014


On 06/18/2014 04:21 PM, Lionel Elie Mamane wrote:
> Why does the attached patch lead to a segfault in "make
> JunitTest_dbaccess_unoapi"? (The patch is against very recent master,
> as in "I pushed right before hitting send on this email".)
>
> Essentially, it changes, in code internal to a class,
> Reference< XResultSet >
> by
> Reference< OResultSet >

Short answer (from just browsing the top of FOO.patch):  Use 
css::uno::Reference<X> only for (C++ classes representing) UNO 
interfaces, and use rtl::Reference<C> for C++ classes implementing UNO 
objects.

Stephan


More information about the LibreOffice mailing list