diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-02-21 17:01:38 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-02-21 17:01:38 +0100 |
commit | ed316fc677eded381bb7d90783f54834eb6df078 (patch) | |
tree | fb00fec0ebac28effc4df34294e3c1b4a9324c4c /stoc | |
parent | 712b33cdbbad997db327115145110fbdee09f2f8 (diff) |
osl_atomic_increment/decrement are macros
Change-Id: I3a294c5c800597f3b17395e1e02944f5279e3753
Diffstat (limited to 'stoc')
-rw-r--r-- | stoc/source/invocation_adapterfactory/iafactory.cxx | 4 | ||||
-rw-r--r-- | stoc/source/security/access_controller.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/stoc/source/invocation_adapterfactory/iafactory.cxx b/stoc/source/invocation_adapterfactory/iafactory.cxx index 5e49a5e22c10..b0380c37207e 100644 --- a/stoc/source/invocation_adapterfactory/iafactory.cxx +++ b/stoc/source/invocation_adapterfactory/iafactory.cxx @@ -191,7 +191,7 @@ inline AdapterImpl::~AdapterImpl() inline void AdapterImpl::acquire() SAL_THROW(()) { - ::osl_atomic_increment( &m_nRef ); + osl_atomic_increment( &m_nRef ); } //______________________________________________________________________________ inline void AdapterImpl::release() @@ -200,7 +200,7 @@ inline void AdapterImpl::release() bool delete_this = false; { MutexGuard guard( m_pFactory->m_mutex ); - if (! ::osl_atomic_decrement( &m_nRef )) + if (! osl_atomic_decrement( &m_nRef )) { t_ptr_map::iterator iFind( m_pFactory->m_receiver2adapters.find( m_key ) ); diff --git a/stoc/source/security/access_controller.cxx b/stoc/source/security/access_controller.cxx index 987d6ec6c57f..c774793b2221 100644 --- a/stoc/source/security/access_controller.cxx +++ b/stoc/source/security/access_controller.cxx @@ -300,13 +300,13 @@ acc_CurrentContext::~acc_CurrentContext() void acc_CurrentContext::acquire() throw () { - ::osl_atomic_increment( &m_refcount ); + osl_atomic_increment( &m_refcount ); } //__________________________________________________________________________________________________ void acc_CurrentContext::release() throw () { - if (! ::osl_atomic_decrement( &m_refcount )) + if (! osl_atomic_decrement( &m_refcount )) { delete this; } |