From 750fc206113a796035cbc05fb904fbae0eb771a8 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sat, 22 Sep 2012 01:51:12 -0500 Subject: replace remaining InterlockedCount() with inlined version Change-Id: Ifcfa48fc87f905a91470a5b0fd597b02f220784c Reviewed-on: https://gerrit.libreoffice.org/671 Tested-by: Norbert Thiebaud Reviewed-by: Norbert Thiebaud --- scripting/source/provider/BrowseNodeFactoryImpl.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripting') diff --git a/scripting/source/provider/BrowseNodeFactoryImpl.cxx b/scripting/source/provider/BrowseNodeFactoryImpl.cxx index aef26be9cb06..68c2f70c3a91 100644 --- a/scripting/source/provider/BrowseNodeFactoryImpl.cxx +++ b/scripting/source/provider/BrowseNodeFactoryImpl.cxx @@ -413,7 +413,7 @@ public: if ( m_xAggProxy.is() ) { - osl_incrementInterlockedCount( &m_refCount ); + osl_atomic_increment( &m_refCount ); /* i35609 - Fix crash on Solaris. The setDelegator call needs to be in its own block to ensure that all temporary Reference @@ -424,7 +424,7 @@ public: static_cast< cppu::OWeakObject * >( this ) ); } - osl_decrementInterlockedCount( &m_refCount ); + osl_atomic_decrement( &m_refCount ); } } @@ -514,12 +514,12 @@ public: throw () { - osl_incrementInterlockedCount( &m_refCount ); + osl_atomic_increment( &m_refCount ); } virtual void SAL_CALL release() throw () { - if ( osl_decrementInterlockedCount( &m_refCount ) == 0 ) + if ( osl_atomic_decrement( &m_refCount ) == 0 ) { delete this; } -- cgit