diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-13 01:44:10 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-25 19:56:03 -0500 |
commit | 2c66250f058edf94769d59e47d9b38230750eeee (patch) | |
tree | a9f6d1513e114a7c637beb541753380b96342120 /sw/source/core/access/accselectionhelper.cxx | |
parent | 46dd655622b0a978aa2dbccaf19828fd1cedb420 (diff) |
use SolarMutexGuard to guard the SolarMutex
Diffstat (limited to 'sw/source/core/access/accselectionhelper.cxx')
-rw-r--r-- | sw/source/core/access/accselectionhelper.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/access/accselectionhelper.cxx b/sw/source/core/access/accselectionhelper.cxx index 9298f2e29e26..ad29dc71c82f 100644 --- a/sw/source/core/access/accselectionhelper.cxx +++ b/sw/source/core/access/accselectionhelper.cxx @@ -97,7 +97,7 @@ void SwAccessibleSelectionHelper::selectAccessibleChild( throw ( lang::IndexOutOfBoundsException, RuntimeException ) { - vos::OGuard aGuard(Application::GetSolarMutex()); + SolarMutexGuard aGuard; // Get the respective child as SwFrm (also do index checking), ... const SwAccessibleChild aChild = rContext.GetChild( *(rContext.GetMap()), @@ -127,7 +127,7 @@ sal_Bool SwAccessibleSelectionHelper::isAccessibleChildSelected( throw ( lang::IndexOutOfBoundsException, RuntimeException ) { - vos::OGuard aGuard(Application::GetSolarMutex()); + SolarMutexGuard aGuard; // Get the respective child as SwFrm (also do index checking), ... const SwAccessibleChild aChild = rContext.GetChild( *(rContext.GetMap()), @@ -162,7 +162,7 @@ void SwAccessibleSelectionHelper::clearAccessibleSelection( ) void SwAccessibleSelectionHelper::selectAllAccessibleChildren( ) throw ( RuntimeException ) { - vos::OGuard aGuard(Application::GetSolarMutex()); + SolarMutexGuard aGuard; // We can select only one. So iterate over the children to find // the first we can select, and select it. @@ -194,7 +194,7 @@ void SwAccessibleSelectionHelper::selectAllAccessibleChildren( ) sal_Int32 SwAccessibleSelectionHelper::getSelectedAccessibleChildCount( ) throw ( RuntimeException ) { - vos::OGuard aGuard(Application::GetSolarMutex()); + SolarMutexGuard aGuard; sal_Int32 nCount = 0; // Only one frame can be selected at a time, and we only frames @@ -246,7 +246,7 @@ Reference<XAccessible> SwAccessibleSelectionHelper::getSelectedAccessibleChild( throw ( lang::IndexOutOfBoundsException, RuntimeException) { - vos::OGuard aGuard(Application::GetSolarMutex()); + SolarMutexGuard aGuard; // Since the index is relative to the selected children, and since // there can be at most one selected frame child, the index must |