summaryrefslogtreecommitdiffstats
path: root/bridges/source/cpp_uno/shared/unointerfaceproxy.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bridges/source/cpp_uno/shared/unointerfaceproxy.cxx')
-rw-r--r--bridges/source/cpp_uno/shared/unointerfaceproxy.cxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/bridges/source/cpp_uno/shared/unointerfaceproxy.cxx b/bridges/source/cpp_uno/shared/unointerfaceproxy.cxx
index c3c560acb7de..91578e9999d1 100644
--- a/bridges/source/cpp_uno/shared/unointerfaceproxy.cxx
+++ b/bridges/source/cpp_uno/shared/unointerfaceproxy.cxx
@@ -50,23 +50,23 @@ void freeUnoInterfaceProxy(uno_ExtEnvironment * pEnv, void * pProxy)
void acquireProxy(uno_Interface * pUnoI)
{
- if (++static_cast< UnoInterfaceProxy * >( pUnoI )->nRef == 1)
- {
- // rebirth of proxy zombie
- // register at uno env
+ if (++static_cast< UnoInterfaceProxy * >( pUnoI )->nRef != 1)
+ return;
+
+ // rebirth of proxy zombie
+ // register at uno env
#if OSL_DEBUG_LEVEL > 1
- void * pThis = pUnoI;
+ void * pThis = pUnoI;
#endif
- (*static_cast< UnoInterfaceProxy * >( pUnoI )->pBridge->getUnoEnv()->
- registerProxyInterface)(
- static_cast< UnoInterfaceProxy * >( pUnoI )->pBridge->getUnoEnv(),
- reinterpret_cast< void ** >( &pUnoI ), freeUnoInterfaceProxy,
- static_cast< UnoInterfaceProxy * >( pUnoI )->oid.pData,
- static_cast< UnoInterfaceProxy * >( pUnoI )->pTypeDescr );
+ (*static_cast< UnoInterfaceProxy * >( pUnoI )->pBridge->getUnoEnv()->
+ registerProxyInterface)(
+ static_cast< UnoInterfaceProxy * >( pUnoI )->pBridge->getUnoEnv(),
+ reinterpret_cast< void ** >( &pUnoI ), freeUnoInterfaceProxy,
+ static_cast< UnoInterfaceProxy * >( pUnoI )->oid.pData,
+ static_cast< UnoInterfaceProxy * >( pUnoI )->pTypeDescr );
#if OSL_DEBUG_LEVEL > 1
- assert(pThis == pUnoI);
+ assert(pThis == pUnoI);
#endif
- }
}
void releaseProxy(uno_Interface * pUnoI)