diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-14 14:00:57 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-25 19:55:29 -0500 |
commit | 213c3f88258fc803bb38dfbfe7c390eba245ca84 (patch) | |
tree | ca5e1de2b7b026ba2af8c7aa4b289f072798b87d /accessibility | |
parent | 3e2c29ba561a9080d42b233962a762ea36330fd5 (diff) |
remove the class TLBSolarMutex and use SolarMutexGuard instead
The class TBLSolarMutex is a wrapper guard arounf the SolarMutex.
the class SolarMutexGuard already provide this function.
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/extended/accessibletablistbox.cxx | 11 | ||||
-rw-r--r-- | accessibility/source/extended/accessibletablistboxtable.cxx | 23 |
2 files changed, 8 insertions, 26 deletions
diff --git a/accessibility/source/extended/accessibletablistbox.cxx b/accessibility/source/extended/accessibletablistbox.cxx index 8d873544f7e1..1b22c0b87565 100644 --- a/accessibility/source/extended/accessibletablistbox.cxx +++ b/accessibility/source/extended/accessibletablistbox.cxx @@ -39,15 +39,6 @@ namespace accessibility { //........................................................................ - // class TLBSolarGuard --------------------------------------------------------- - - /** Aquire the solar mutex. */ - class TLBSolarGuard : public ::vos::OGuard - { - public: - inline TLBSolarGuard() : ::vos::OGuard( Application::GetSolarMutex() ) {} - }; - // class AccessibleTabListBox ----------------------------------------------------- using namespace ::com::sun::star::accessibility; @@ -117,7 +108,7 @@ namespace accessibility AccessibleTabListBox::getAccessibleChild( sal_Int32 nChildIndex ) throw ( IndexOutOfBoundsException, RuntimeException ) { - TLBSolarGuard aSolarGuard; + SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( getOslMutex() ); ensureIsAlive(); diff --git a/accessibility/source/extended/accessibletablistboxtable.cxx b/accessibility/source/extended/accessibletablistboxtable.cxx index f93d20edd2bc..3cd3c333148a 100644 --- a/accessibility/source/extended/accessibletablistboxtable.cxx +++ b/accessibility/source/extended/accessibletablistboxtable.cxx @@ -40,15 +40,6 @@ namespace accessibility { //........................................................................ - // class TLBSolarGuard --------------------------------------------------------- - - /** Aquire the solar mutex. */ - class TLBSolarGuard : public ::vos::OGuard - { - public: - inline TLBSolarGuard() : ::vos::OGuard( Application::GetSolarMutex() ) {} - }; - // class AccessibleTabListBoxTable --------------------------------------------- using namespace ::com::sun::star::accessibility; @@ -299,7 +290,7 @@ namespace accessibility // ----------------------------------------------------------------------------- void SAL_CALL AccessibleTabListBoxTable::selectAccessibleChild( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException) { - TLBSolarGuard aSolarGuard; + SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( getOslMutex() ); ensureIsAlive(); @@ -310,7 +301,7 @@ namespace accessibility // ----------------------------------------------------------------------------- sal_Bool SAL_CALL AccessibleTabListBoxTable::isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (IndexOutOfBoundsException, RuntimeException) { - TLBSolarGuard aSolarGuard; + SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( getOslMutex() ); ensureIsAlive(); @@ -321,7 +312,7 @@ namespace accessibility // ----------------------------------------------------------------------------- void SAL_CALL AccessibleTabListBoxTable::clearAccessibleSelection( ) throw (RuntimeException) { - TLBSolarGuard aSolarGuard; + SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( getOslMutex() ); ensureIsAlive(); @@ -331,7 +322,7 @@ namespace accessibility // ----------------------------------------------------------------------------- void SAL_CALL AccessibleTabListBoxTable::selectAllAccessibleChildren( ) throw (RuntimeException) { - TLBSolarGuard aSolarGuard; + SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( getOslMutex() ); ensureIsAlive(); @@ -341,7 +332,7 @@ namespace accessibility // ----------------------------------------------------------------------------- sal_Int32 SAL_CALL AccessibleTabListBoxTable::getSelectedAccessibleChildCount( ) throw (RuntimeException) { - TLBSolarGuard aSolarGuard; + SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( getOslMutex() ); ensureIsAlive(); @@ -351,7 +342,7 @@ namespace accessibility // ----------------------------------------------------------------------------- Reference< XAccessible > SAL_CALL AccessibleTabListBoxTable::getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException) { - TLBSolarGuard aSolarGuard; + SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( getOslMutex() ); ensureIsAlive(); @@ -367,7 +358,7 @@ namespace accessibility // ----------------------------------------------------------------------------- void SAL_CALL AccessibleTabListBoxTable::deselectAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (IndexOutOfBoundsException, RuntimeException) { - TLBSolarGuard aSolarGuard; + SolarMutexGuard aSolarGuard; ::osl::MutexGuard aGuard( getOslMutex() ); ensureIsAlive(); |