summaryrefslogtreecommitdiff
path: root/framework/source/fwe
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-09-22 01:51:12 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-09-25 01:55:38 +0000
commit750fc206113a796035cbc05fb904fbae0eb771a8 (patch)
tree4ea1f0378c2b6d7f50480d3b9051de91780219cd /framework/source/fwe
parentbcd2b017088822ea95e9d33d1d0dc360c0ec8d74 (diff)
replace remaining InterlockedCount() with inlined version
Change-Id: Ifcfa48fc87f905a91470a5b0fd597b02f220784c Reviewed-on: https://gerrit.libreoffice.org/671 Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'framework/source/fwe')
-rw-r--r--framework/source/fwe/helper/documentundoguard.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/framework/source/fwe/helper/documentundoguard.cxx b/framework/source/fwe/helper/documentundoguard.cxx
index fb522f905a2c..8fe601152797 100644
--- a/framework/source/fwe/helper/documentundoguard.cxx
+++ b/framework/source/fwe/helper/documentundoguard.cxx
@@ -62,11 +62,11 @@ namespace framework
,m_nRelativeContextDepth( 0 )
,m_documentDisposed( false )
{
- osl_incrementInterlockedCount( &m_refCount );
+ osl_atomic_increment( &m_refCount );
{
m_xUndoManager->addUndoManagerListener( this );
}
- osl_decrementInterlockedCount( &m_refCount );
+ osl_atomic_decrement( &m_refCount );
}
UndoManagerContextListener()
@@ -158,35 +158,35 @@ namespace framework
void SAL_CALL UndoManagerContextListener::enteredContext( const UndoManagerEvent& i_event ) throw (RuntimeException)
{
(void)i_event;
- osl_incrementInterlockedCount( &m_nRelativeContextDepth );
+ osl_atomic_increment( &m_nRelativeContextDepth );
}
//------------------------------------------------------------------------------------------------------------------
void SAL_CALL UndoManagerContextListener::enteredHiddenContext( const UndoManagerEvent& i_event ) throw (RuntimeException)
{
(void)i_event;
- osl_incrementInterlockedCount( &m_nRelativeContextDepth );
+ osl_atomic_increment( &m_nRelativeContextDepth );
}
//------------------------------------------------------------------------------------------------------------------
void SAL_CALL UndoManagerContextListener::leftContext( const UndoManagerEvent& i_event ) throw (RuntimeException)
{
(void)i_event;
- osl_decrementInterlockedCount( &m_nRelativeContextDepth );
+ osl_atomic_decrement( &m_nRelativeContextDepth );
}
//------------------------------------------------------------------------------------------------------------------
void SAL_CALL UndoManagerContextListener::leftHiddenContext( const UndoManagerEvent& i_event ) throw (RuntimeException)
{
(void)i_event;
- osl_decrementInterlockedCount( &m_nRelativeContextDepth );
+ osl_atomic_decrement( &m_nRelativeContextDepth );
}
//------------------------------------------------------------------------------------------------------------------
void SAL_CALL UndoManagerContextListener::cancelledContext( const UndoManagerEvent& i_event ) throw (RuntimeException)
{
(void)i_event;
- osl_decrementInterlockedCount( &m_nRelativeContextDepth );
+ osl_atomic_decrement( &m_nRelativeContextDepth );
}
//------------------------------------------------------------------------------------------------------------------