replace remaining InterlockedCount() with inlined version
Change-Id: Ifcfa48fc87f905a91470a5b0fd597b02f220784c Reviewed-on: https://gerrit.libreoffice.org/671 Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
This commit is contained in:
@@ -60,13 +60,13 @@ namespace frm
|
||||
//--------------------------------------------------------------------
|
||||
oslInterlockedCount SAL_CALL ReferenceBase::acquire()
|
||||
{
|
||||
return osl_incrementInterlockedCount( &m_refCount );
|
||||
return osl_atomic_increment( &m_refCount );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
oslInterlockedCount SAL_CALL ReferenceBase::release()
|
||||
{
|
||||
return osl_decrementInterlockedCount( &m_refCount );
|
||||
return osl_atomic_decrement( &m_refCount );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user