diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-05-07 17:03:35 +1000 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-05-07 17:03:35 +1000 |
commit | 97eb00c75e173d4c8d0b483a7941ad3d2f23783e (patch) | |
tree | 7974a8b9423c56982646366b0859dfb2a1a88d50 /stoc/source/proxy_factory/proxyfac.cxx | |
parent | d0a99cc2ed76be220f7e868e332ba19f6e48a440 (diff) |
revert OSL_ASSERT changes
Change-Id: I365d140446bd2a62cf8256acbfdd53fe72987380
Diffstat (limited to 'stoc/source/proxy_factory/proxyfac.cxx')
-rw-r--r-- | stoc/source/proxy_factory/proxyfac.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/stoc/source/proxy_factory/proxyfac.cxx b/stoc/source/proxy_factory/proxyfac.cxx index da3eb0b65c67..ea3c7479c21d 100644 --- a/stoc/source/proxy_factory/proxyfac.cxx +++ b/stoc/source/proxy_factory/proxyfac.cxx @@ -152,7 +152,7 @@ UnoInterfaceReference FactoryImpl::binuno_queryInterface( m_uno2cpp.get() ); uno_any_destruct( exc, nullptr ); ::cppu::throwException( cpp_exc ); - assert( false ); // way of no return + OSL_ASSERT( false ); // way of no return return UnoInterfaceReference(); // for dummy } } @@ -197,7 +197,7 @@ static void SAL_CALL binuno_proxy_free( (void) pEnv; // avoid warning about unused parameter binuno_Proxy * proxy = static_cast< binuno_Proxy * >( static_cast< uno_Interface * >( pProxy ) ); - assert( proxy->m_root->m_factory->m_uno_env.get()->pExtEnv == pEnv ); + OSL_ASSERT( proxy->m_root->m_factory->m_uno_env.get()->pExtEnv == pEnv ); delete proxy; } @@ -210,13 +210,13 @@ static void SAL_CALL binuno_proxy_acquire( uno_Interface * pUnoI ) // rebirth of zombie uno_ExtEnvironment * uno_env = that->m_root->m_factory->m_uno_env.get()->pExtEnv; - assert( uno_env != nullptr ); + OSL_ASSERT( uno_env != nullptr ); (*uno_env->registerProxyInterface)( uno_env, reinterpret_cast< void ** >( &pUnoI ), binuno_proxy_free, that->m_oid.pData, reinterpret_cast< typelib_InterfaceTypeDescription * >( that->m_typeDescr.get() ) ); - assert( that == static_cast< binuno_Proxy * >( pUnoI ) ); + OSL_ASSERT( that == static_cast< binuno_Proxy * >( pUnoI ) ); } } @@ -228,7 +228,7 @@ static void SAL_CALL binuno_proxy_release( uno_Interface * pUnoI ) { uno_ExtEnvironment * uno_env = that->m_root->m_factory->m_uno_env.get()->pExtEnv; - assert( uno_env != nullptr ); + OSL_ASSERT( uno_env != nullptr ); (*uno_env->revokeInterface)( uno_env, pUnoI ); } } @@ -319,14 +319,14 @@ Any ProxyRoot::queryAggregation( Type const & rType ) { Reference< XInterface > xProxy; uno_ExtEnvironment * cpp_env = m_factory->m_cpp_env.get()->pExtEnv; - assert( cpp_env != nullptr ); + OSL_ASSERT( cpp_env != nullptr ); // mind a new delegator, calculate current root: Reference< XInterface > xRoot( static_cast< OWeakObject * >(this), UNO_QUERY_THROW ); OUString oid; (*cpp_env->getObjectIdentifier)( cpp_env, &oid.pData, xRoot.get() ); - assert( !oid.isEmpty() ); + OSL_ASSERT( !oid.isEmpty() ); (*cpp_env->getRegisteredInterface)( cpp_env, reinterpret_cast< void ** >( &xProxy ), @@ -353,7 +353,7 @@ Any ProxyRoot::queryAggregation( Type const & rType ) SAL_NO_ACQUIRE ); uno_ExtEnvironment * uno_env = m_factory->m_uno_env.get()->pExtEnv; - assert( uno_env != nullptr ); + OSL_ASSERT( uno_env != nullptr ); (*uno_env->registerProxyInterface)( uno_env, reinterpret_cast< void ** >( &proxy.m_pUnoI ), binuno_proxy_free, oid.pData, |