Adapt to osl_atomic_inc-/decrement
Change-Id: I848873b07ab05cefdc755a8bf1301907fdfbc299
This commit is contained in:
@@ -71,13 +71,13 @@ public:
|
||||
*/
|
||||
virtual oslInterlockedCount SAL_CALL acquire() SAL_THROW(())
|
||||
{
|
||||
return ::osl_incrementInterlockedCount (&m_nReferenceCount);
|
||||
return osl_atomic_increment (&m_nReferenceCount);
|
||||
}
|
||||
|
||||
virtual oslInterlockedCount SAL_CALL release() SAL_THROW(())
|
||||
{
|
||||
oslInterlockedCount result;
|
||||
result = ::osl_decrementInterlockedCount (&m_nReferenceCount);
|
||||
result = ::osl_atomic_decrement (&m_nReferenceCount);
|
||||
if (result == 0)
|
||||
{
|
||||
// Last reference released.
|
||||
|
@@ -65,7 +65,7 @@ SvtRulerAccessible::~SvtRulerAccessible()
|
||||
|
||||
if( IsAlive() )
|
||||
{
|
||||
osl_incrementInterlockedCount( &m_refCount );
|
||||
osl_atomic_increment( &m_refCount );
|
||||
dispose(); // set mpRepr = NULL & release all childs
|
||||
}
|
||||
}
|
||||
|
@@ -64,7 +64,7 @@ SvxPixelCtlAccessible::~SvxPixelCtlAccessible()
|
||||
{
|
||||
if( IsAlive() )
|
||||
{
|
||||
osl_incrementInterlockedCount( &m_refCount );
|
||||
osl_atomic_increment( &m_refCount );
|
||||
dispose(); // set mpRepr = NULL & release all childs
|
||||
}
|
||||
}
|
||||
@@ -727,7 +727,7 @@ SvxPixelCtlAccessibleChild::~SvxPixelCtlAccessibleChild()
|
||||
|
||||
if( IsAlive() )
|
||||
{
|
||||
osl_incrementInterlockedCount( &m_refCount );
|
||||
osl_atomic_increment( &m_refCount );
|
||||
dispose(); // set mpRepr = NULL & release all childs
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user