summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-22 18:53:27 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-24 08:08:00 +0100
commitc19cb642dbce41a481f65bc342bc8dc3008211c8 (patch)
treea61e59a2c692b6f3a9123f008b9e4302ebb23e1a
parentb7259532d83ea1263f6944974d71162c47203939 (diff)
Adapt to osl_atomic_inc-/decrement
Change-Id: I848873b07ab05cefdc755a8bf1301907fdfbc299
-rw-r--r--include/salhelper/refobj.hxx4
-rw-r--r--svtools/source/control/accessibleruler.cxx2
-rw-r--r--svx/source/accessibility/svxpixelctlaccessiblecontext.cxx4
3 files changed, 5 insertions, 5 deletions
diff --git a/include/salhelper/refobj.hxx b/include/salhelper/refobj.hxx
index 16e85fbd0b8b..9a1cb9b5570e 100644
--- a/include/salhelper/refobj.hxx
+++ b/include/salhelper/refobj.hxx
@@ -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.
diff --git a/svtools/source/control/accessibleruler.cxx b/svtools/source/control/accessibleruler.cxx
index 6a42ae762ef4..0b0a81cd46bc 100644
--- a/svtools/source/control/accessibleruler.cxx
+++ b/svtools/source/control/accessibleruler.cxx
@@ -65,7 +65,7 @@ SvtRulerAccessible::~SvtRulerAccessible()
if( IsAlive() )
{
- osl_incrementInterlockedCount( &m_refCount );
+ osl_atomic_increment( &m_refCount );
dispose(); // set mpRepr = NULL & release all childs
}
}
diff --git a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx
index 527d2cff5f24..f4926b93a9fd 100644
--- a/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx
+++ b/svx/source/accessibility/svxpixelctlaccessiblecontext.cxx
@@ -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
}
}