summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2010-10-14 14:00:57 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2010-10-25 19:55:29 -0500
commit92f9cd7e03320c9b3123bd7f8730918d6d4a26d8 (patch)
tree2cbbb5ff9f2c3582831f3112676d655801ba5388
parent6ed5e648057e0b14b076c9bb7ded5368e5c4428c (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.
-rw-r--r--accessibility/source/extended/accessibletablistbox.cxx11
-rw-r--r--accessibility/source/extended/accessibletablistboxtable.cxx23
2 files changed, 8 insertions, 26 deletions
diff --git a/accessibility/source/extended/accessibletablistbox.cxx b/accessibility/source/extended/accessibletablistbox.cxx
index 5a93143a2..a50001d59 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 3678c0e8e..3863d8aab 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();