summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unosrch.cxx
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2010-10-13 01:44:10 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2010-10-25 19:56:03 -0500
commit2c66250f058edf94769d59e47d9b38230750eeee (patch)
treea9f6d1513e114a7c637beb541753380b96342120 /sw/source/core/unocore/unosrch.cxx
parent46dd655622b0a978aa2dbccaf19828fd1cedb420 (diff)
use SolarMutexGuard to guard the SolarMutex
Diffstat (limited to 'sw/source/core/unocore/unosrch.cxx')
-rw-r--r--sw/source/core/unocore/unosrch.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/core/unocore/unosrch.cxx b/sw/source/core/unocore/unosrch.cxx
index b23f7c6e2f0f..0fd71924a278 100644
--- a/sw/source/core/unocore/unosrch.cxx
+++ b/sw/source/core/unocore/unosrch.cxx
@@ -458,26 +458,26 @@ sal_Int64 SAL_CALL SwXTextSearch::getSomething( const uno::Sequence< sal_Int8 >&
OUString SwXTextSearch::getSearchString(void) throw( uno::RuntimeException )
{
- vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
return sSearchText;
}
void SwXTextSearch::setSearchString(const OUString& rString)
throw( uno::RuntimeException )
{
- vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sSearchText = String(rString);
}
OUString SwXTextSearch::getReplaceString(void) throw( uno::RuntimeException )
{
- vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
return sReplaceText;
}
void SwXTextSearch::setReplaceString(const OUString& rReplaceString) throw( uno::RuntimeException )
{
- vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
sReplaceText = String(rReplaceString);
}
@@ -491,7 +491,7 @@ void SwXTextSearch::setPropertyValue(const OUString& rPropertyName, const uno::A
throw( beans::UnknownPropertyException, beans::PropertyVetoException,
lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException )
{
- vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName(rPropertyName);
if(pEntry)
{
@@ -522,7 +522,7 @@ void SwXTextSearch::setPropertyValue(const OUString& rPropertyName, const uno::A
uno::Any SwXTextSearch::getPropertyValue(const OUString& rPropertyName) throw( beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException )
{
- vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
uno::Any aRet;
const SfxItemPropertySimpleEntry* pEntry = m_pPropSet->getPropertyMap()->getByName(rPropertyName);
@@ -579,13 +579,13 @@ void SwXTextSearch::removeVetoableChangeListener(const OUString& /*rPropertyName
sal_Bool SwXTextSearch::getValueSearch(void) throw( uno::RuntimeException )
{
- vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
return bIsValueSearch;
}
void SwXTextSearch::setValueSearch(sal_Bool ValueSearch_) throw( uno::RuntimeException )
{
- vos::OGuard aGuard(Application::GetSolarMutex());
+ SolarMutexGuard aGuard;
bIsValueSearch = ValueSearch_;
}