summaryrefslogtreecommitdiff
path: root/stoc/source/proxy_factory/proxyfac.cxx
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2017-05-07 08:35:34 +1000
committerChris Sherlock <chris.sherlock79@gmail.com>2017-05-07 08:35:34 +1000
commit99ef7846544ea4548fb607df37aa0429d68c2ebe (patch)
tree4d8f5a96617cc48e06adb0f389445b4e3088b6ed /stoc/source/proxy_factory/proxyfac.cxx
parentf81e6f5c78686be9d58174800983012ec025b849 (diff)
tdf#43157: convert stoc from OSL_ASSERT to assert
Change-Id: I7d1b2748a4f4afd873ee4d65d153c76b249507dd
Diffstat (limited to 'stoc/source/proxy_factory/proxyfac.cxx')
-rw-r--r--stoc/source/proxy_factory/proxyfac.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/stoc/source/proxy_factory/proxyfac.cxx b/stoc/source/proxy_factory/proxyfac.cxx
index ea3c7479c21d..da3eb0b65c67 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 );
- OSL_ASSERT( false ); // way of no return
+ 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 ) );
- OSL_ASSERT( proxy->m_root->m_factory->m_uno_env.get()->pExtEnv == pEnv );
+ 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;
- OSL_ASSERT( uno_env != nullptr );
+ 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() ) );
- OSL_ASSERT( that == static_cast< binuno_Proxy * >( pUnoI ) );
+ 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;
- OSL_ASSERT( uno_env != nullptr );
+ 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;
- OSL_ASSERT( cpp_env != nullptr );
+ 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() );
- OSL_ASSERT( !oid.isEmpty() );
+ 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;
- OSL_ASSERT( uno_env != nullptr );
+ assert( uno_env != nullptr );
(*uno_env->registerProxyInterface)(
uno_env, reinterpret_cast< void ** >( &proxy.m_pUnoI ),
binuno_proxy_free, oid.pData,