diff options
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/source/uno/lbenv.cxx | 8 | ||||
-rw-r--r-- | cppu/source/uno/lbmap.cxx | 2 |
2 files changed, 4 insertions, 6 deletions
diff --git a/cppu/source/uno/lbenv.cxx b/cppu/source/uno/lbenv.cxx index b2828209d45d..c38a9b7a2eb0 100644 --- a/cppu/source/uno/lbenv.cxx +++ b/cppu/source/uno/lbenv.cxx @@ -1006,7 +1006,7 @@ inline void EnvironmentsData::getRegisteredEnvironments( uno_Environment *** pppEnvs, sal_Int32 * pnLen, uno_memAlloc memAlloc, const OUString & rEnvDcp ) { - OSL_ENSURE( pppEnvs && pnLen && memAlloc, "### null ptr!" ); + assert(pppEnvs && pnLen && memAlloc && "### null ptr!"); // max size uno_Environment ** ppFound = (uno_Environment **)alloca( @@ -1144,7 +1144,7 @@ CPPU_DLLPUBLIC void SAL_CALL uno_createEnvironment( uno_Environment ** ppEnv, rtl_uString * pEnvDcp, void * pContext ) SAL_THROW_EXTERN_C() { - OSL_ENSURE( ppEnv, "### null ptr!" ); + assert(ppEnv && "### null ptr!"); if (*ppEnv) (*(*ppEnv)->release)( *ppEnv ); @@ -1152,12 +1152,11 @@ CPPU_DLLPUBLIC void SAL_CALL uno_createEnvironment( *ppEnv = initDefaultEnvironment( rEnvDcp, pContext ); } - CPPU_DLLPUBLIC void SAL_CALL uno_getEnvironment( uno_Environment ** ppEnv, rtl_uString * pEnvDcp, void * pContext ) SAL_THROW_EXTERN_C() { - OSL_ENSURE( ppEnv, "### null ptr!" ); + assert(ppEnv && "### null ptr!"); OUString const & rEnvDcp = OUString::unacquired( &pEnvDcp ); EnvironmentsData & rData = theEnvironmentsData::get(); @@ -1175,7 +1174,6 @@ CPPU_DLLPUBLIC void SAL_CALL uno_getEnvironment( } } - CPPU_DLLPUBLIC void SAL_CALL uno_getRegisteredEnvironments( uno_Environment *** pppEnvs, sal_Int32 * pnLen, uno_memAlloc memAlloc, rtl_uString * pEnvDcp ) diff --git a/cppu/source/uno/lbmap.cxx b/cppu/source/uno/lbmap.cxx index 43c5d4af6e6f..162f438ceebe 100644 --- a/cppu/source/uno/lbmap.cxx +++ b/cppu/source/uno/lbmap.cxx @@ -631,7 +631,7 @@ void SAL_CALL uno_getMappingByName( rtl_uString * pAddPurpose ) SAL_THROW_EXTERN_C() { - OSL_ENSURE( ppMapping && pFrom && pTo, "### null ptr!" ); + assert(ppMapping && pFrom && pTo && "### null ptr!"); if (*ppMapping) { (*(*ppMapping)->release)( *ppMapping ); |