summaryrefslogtreecommitdiff
path: root/cppuhelper/source/component.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppuhelper/source/component.cxx')
-rw-r--r--cppuhelper/source/component.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cppuhelper/source/component.cxx b/cppuhelper/source/component.cxx
index 1cc7c2fdd79b..cc77a90ae008 100644
--- a/cppuhelper/source/component.cxx
+++ b/cppuhelper/source/component.cxx
@@ -85,7 +85,7 @@ void OComponentHelper::release() throw()
Reference<XInterface > x( xDelegator );
if (! x.is())
{
- if (osl_decrementInterlockedCount( &m_refCount ) == 0)
+ if (osl_atomic_decrement( &m_refCount ) == 0)
{
if (! rBHelper.bDisposed)
{
@@ -117,7 +117,7 @@ void OComponentHelper::release() throw()
}
}
// restore the reference count
- osl_incrementInterlockedCount( &m_refCount );
+ osl_atomic_increment( &m_refCount );
}
OWeakAggObject::release();
}