summaryrefslogtreecommitdiff
path: root/bridges/source/cpp_uno/shared/bridge.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bridges/source/cpp_uno/shared/bridge.cxx')
-rw-r--r--bridges/source/cpp_uno/shared/bridge.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/bridges/source/cpp_uno/shared/bridge.cxx b/bridges/source/cpp_uno/shared/bridge.cxx
index 4523f20061a3..cefb62ef3453 100644
--- a/bridges/source/cpp_uno/shared/bridge.cxx
+++ b/bridges/source/cpp_uno/shared/bridge.cxx
@@ -153,7 +153,7 @@ uno_Mapping * Bridge::createMapping(
void Bridge::acquire() SAL_THROW(())
{
- if (1 == osl_incrementInterlockedCount( &nRef ))
+ if (1 == osl_atomic_increment( &nRef ))
{
if (bExportCpp2Uno)
{
@@ -174,7 +174,7 @@ void Bridge::acquire() SAL_THROW(())
void Bridge::release() SAL_THROW(())
{
- if (! osl_decrementInterlockedCount( &nRef ))
+ if (! osl_atomic_decrement( &nRef ))
{
::uno_revokeMapping( bExportCpp2Uno ? &aCpp2Uno : &aUno2Cpp );
}