summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-09-30 19:59:02 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-09-30 19:59:02 +0200
commita842b5690e77de51d933bd9a4224303abba1d870 (patch)
treeea302c0989ca3fdeb2d2611c22d504d04237be9f /cppu
parent5cc1d5ca954a594129bd81159a87f8dfb9bbffe7 (diff)
Make Reference::iset_throw work with multiple-inheritance interfaces
Change-Id: Ia8a644c613de17279abdab533a6314ba6c0e0aec
Diffstat (limited to 'cppu')
-rw-r--r--cppu/inc/com/sun/star/uno/Reference.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/cppu/inc/com/sun/star/uno/Reference.hxx b/cppu/inc/com/sun/star/uno/Reference.hxx
index 100a430f7045..aa39810159d3 100644
--- a/cppu/inc/com/sun/star/uno/Reference.hxx
+++ b/cppu/inc/com/sun/star/uno/Reference.hxx
@@ -91,7 +91,7 @@ inline interface_type * Reference< interface_type >::iset_throw(
{
if (pInterface)
{
- pInterface->acquire();
+ castToXInterface(pInterface)->acquire();
return pInterface;
}
throw RuntimeException(
@@ -184,13 +184,13 @@ inline Reference< interface_type >::Reference( const Any & rAny, UnoReference_Qu
template< class interface_type >
inline Reference< interface_type >::Reference( const Reference< interface_type > & rRef, UnoReference_SetThrow ) SAL_THROW( (RuntimeException) )
{
- _pInterface = iset_throw( rRef.get() );
+ _pInterface = castToXInterface( iset_throw( rRef.get() ) );
}
//__________________________________________________________________________________________________
template< class interface_type >
inline Reference< interface_type >::Reference( interface_type * pInterface, UnoReference_SetThrow ) SAL_THROW( (RuntimeException) )
{
- _pInterface = iset_throw( pInterface );
+ _pInterface = castToXInterface( iset_throw( pInterface ) );
}
#endif