summaryrefslogtreecommitdiff
path: root/cppuhelper/source/interfacecontainer.cxx
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2017-05-07 08:11:12 +1000
committerChris Sherlock <chris.sherlock79@gmail.com>2017-05-07 08:11:12 +1000
commit9a274915a16eea5e3ce51a27b1a8741ac5e785b8 (patch)
tree952d7239d645985b08edf0c7e9fbcc6e3f43a2f5 /cppuhelper/source/interfacecontainer.cxx
parent8dd791560b08525eec3853029fc9f4e1c49f74de (diff)
tdf#43157: convert cppuhelper and io from OSL_ASSERT to assert
Change-Id: I56d49e1ce9f1c070fedcabb8f1637d17dee1083b
Diffstat (limited to 'cppuhelper/source/interfacecontainer.cxx')
-rw-r--r--cppuhelper/source/interfacecontainer.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/cppuhelper/source/interfacecontainer.cxx b/cppuhelper/source/interfacecontainer.cxx
index 2eb7197bf9e6..0571c4c87e66 100644
--- a/cppuhelper/source/interfacecontainer.cxx
+++ b/cppuhelper/source/interfacecontainer.cxx
@@ -126,14 +126,14 @@ void OInterfaceIteratorHelper::remove()
{
if( bIsList )
{
- OSL_ASSERT( nRemain >= 0 &&
+ assert( nRemain >= 0 &&
nRemain < aData.pAsSequence->getLength() );
XInterface * p = aData.pAsSequence->getConstArray()[nRemain].get();
rCont.removeInterface( * reinterpret_cast< const Reference< XInterface > * >( &p ) );
}
else
{
- OSL_ASSERT( 0 == nRemain );
+ assert( 0 == nRemain );
rCont.removeInterface( * reinterpret_cast< const Reference< XInterface > * >(&aData.pAsInterface));
}
}
@@ -195,7 +195,7 @@ void OInterfaceContainerHelper::copyAndResetInUse()
sal_Int32 OInterfaceContainerHelper::addInterface( const Reference<XInterface> & rListener )
{
- OSL_ASSERT( rListener.is() );
+ assert( rListener.is() );
MutexGuard aGuard( rMutex );
if( bInUse )
copyAndResetInUse();
@@ -226,7 +226,7 @@ sal_Int32 OInterfaceContainerHelper::addInterface( const Reference<XInterface> &
sal_Int32 OInterfaceContainerHelper::removeInterface( const Reference<XInterface> & rListener )
{
- OSL_ASSERT( rListener.is() );
+ assert( rListener.is() );
MutexGuard aGuard( rMutex );
if( bInUse )
copyAndResetInUse();