summaryrefslogtreecommitdiffstats
path: root/connectivity/source/commontools/dbtools.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/commontools/dbtools.cxx')
-rw-r--r--connectivity/source/commontools/dbtools.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/commontools/dbtools.cxx b/connectivity/source/commontools/dbtools.cxx
index 96639c641a09..f175c3ed5a66 100644
--- a/connectivity/source/commontools/dbtools.cxx
+++ b/connectivity/source/commontools/dbtools.cxx
@@ -2063,9 +2063,9 @@ void release(oslInterlockedCount& _refCount,
Reference< XInterface >& _xInterface,
::com::sun::star::lang::XComponent* _pObject)
{
- if (osl_decrementInterlockedCount( &_refCount ) == 0)
+ if (osl_atomic_decrement( &_refCount ) == 0)
{
- osl_incrementInterlockedCount( &_refCount );
+ osl_atomic_increment( &_refCount );
if (!rBHelper.bDisposed && !rBHelper.bInDispose)
{
@@ -2095,7 +2095,7 @@ void release(oslInterlockedCount& _refCount,
}
}
else
- osl_incrementInterlockedCount( &_refCount );
+ osl_atomic_increment( &_refCount );
}
void checkDisposed(sal_Bool _bThrow) throw ( DisposedException )