summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/proxyaggregation.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/misc/proxyaggregation.cxx')
-rw-r--r--comphelper/source/misc/proxyaggregation.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/comphelper/source/misc/proxyaggregation.cxx b/comphelper/source/misc/proxyaggregation.cxx
index e98b21eb093b..6d190ff91b14 100644
--- a/comphelper/source/misc/proxyaggregation.cxx
+++ b/comphelper/source/misc/proxyaggregation.cxx
@@ -59,7 +59,7 @@ namespace comphelper
m_xProxyAggregate->queryAggregation( ::getCppuType( &m_xProxyTypeAccess ) ) >>= m_xProxyTypeAccess;
// aggregate the proxy
- osl_incrementInterlockedCount( &_rRefCount );
+ osl_atomic_increment( &_rRefCount );
if ( m_xProxyAggregate.is() )
{
// At this point in time, the proxy has a ref count of exactly two - in m_xControlContextProxy,
@@ -67,7 +67,7 @@ namespace comphelper
// Remember to _not_ reset these members unless the delegator of the proxy has been reset, too!
m_xProxyAggregate->setDelegator( _rDelegator );
}
- osl_decrementInterlockedCount( &_rRefCount );
+ osl_atomic_decrement( &_rRefCount );
}
}
@@ -124,12 +124,12 @@ namespace comphelper
baseAggregateProxyFor( m_xInner.get(), _rRefCount, _rDelegator );
// add as event listener to the inner context, because we want to be notified of disposals
- osl_incrementInterlockedCount( &_rRefCount );
+ osl_atomic_increment( &_rRefCount );
{
if ( m_xInner.is() )
m_xInner->addEventListener( this );
}
- osl_decrementInterlockedCount( &_rRefCount );
+ osl_atomic_decrement( &_rRefCount );
}
//-------------------------------------------------------------------------