summaryrefslogtreecommitdiff
path: root/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx')
-rw-r--r--bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx b/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx
index c692b33d4f9e..8ca98a841f15 100644
--- a/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx
+++ b/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx
@@ -86,7 +86,7 @@ void freeCppInterfaceProxy(uno_ExtEnvironment * pEnv, void * pInterface)
pThis->pBridge->getUnoEnv(), pThis->pUnoI );
(*pThis->pUnoI->release)( pThis->pUnoI );
::typelib_typedescription_release(
- (typelib_TypeDescription *)pThis->pTypeDescr );
+ &pThis->pTypeDescr->aBase );
pThis->pBridge->release();
#if OSL_DEBUG_LEVEL > 1
@@ -153,7 +153,7 @@ CppInterfaceProxy::CppInterfaceProxy(
{
memset(vtables, 0, sizeof(vtables));
pBridge->acquire();
- ::typelib_typedescription_acquire( (typelib_TypeDescription *)pTypeDescr );
+ ::typelib_typedescription_acquire( &pTypeDescr->aBase );
(*pUnoI->acquire)( pUnoI );
(*pBridge->getUnoEnv()->registerInterface)(
pBridge->getUnoEnv(), reinterpret_cast< void ** >( &pUnoI ), oid.pData,