summaryrefslogtreecommitdiff
path: root/svx/source/unodialogs
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2010-10-13 02:47:36 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2010-10-25 19:55:33 -0500
commitf4f4a8ed4f56035cc9f536d00f62a552af974cf0 (patch)
treee247bfb2431e1413704de1286952e8e5d6eb1bfd /svx/source/unodialogs
parent3a81649a55a49705d907a6ee72c92e26d2d4f2ee (diff)
use SolarMutexGuard to guard the SolarMutex
Diffstat (limited to 'svx/source/unodialogs')
-rw-r--r--svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx b/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx
index bf6bbc3c41c4..281080e2d2e7 100644
--- a/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx
+++ b/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.cxx
@@ -70,7 +70,7 @@ ChineseTranslation_UnoDialog::ChineseTranslation_UnoDialog( const uno::Reference
ChineseTranslation_UnoDialog::~ChineseTranslation_UnoDialog()
{
- ::vos::OGuard aSolarGuard( Application::GetSolarMutex());
+ SolarMutexGuard aSolarGuard;
impl_DeleteDialog();
}
@@ -132,7 +132,7 @@ void SAL_CALL ChineseTranslation_UnoDialog::setTitle( const ::rtl::OUString& ) t
//-------------------------------------------------------------------------
void SAL_CALL ChineseTranslation_UnoDialog::initialize( const uno::Sequence< uno::Any >& aArguments ) throw(uno::Exception, uno::RuntimeException)
{
- ::vos::OGuard aSolarGuard( Application::GetSolarMutex());
+ SolarMutexGuard aSolarGuard;
if( m_bDisposed || m_bInDispose )
return;
@@ -155,7 +155,7 @@ sal_Int16 SAL_CALL ChineseTranslation_UnoDialog::execute() throw(uno::RuntimeExc
{
sal_Int16 nRet = ui::dialogs::ExecutableDialogResults::CANCEL;
{
- ::vos::OGuard aSolarGuard( Application::GetSolarMutex());
+ SolarMutexGuard aSolarGuard;
if( m_bDisposed || m_bInDispose )
return nRet;
@@ -187,7 +187,7 @@ void SAL_CALL ChineseTranslation_UnoDialog::dispose() throw (uno::RuntimeExcepti
{
lang::EventObject aEvt;
{
- ::vos::OGuard aSolarGuard( Application::GetSolarMutex());
+ SolarMutexGuard aSolarGuard;
if( m_bDisposed || m_bInDispose )
return;
m_bInDispose = true;
@@ -204,7 +204,7 @@ void SAL_CALL ChineseTranslation_UnoDialog::dispose() throw (uno::RuntimeExcepti
void SAL_CALL ChineseTranslation_UnoDialog::addEventListener( const uno::Reference< lang::XEventListener > & xListener ) throw (uno::RuntimeException)
{
- ::vos::OGuard aSolarGuard( Application::GetSolarMutex());
+ SolarMutexGuard aSolarGuard;
if( m_bDisposed || m_bInDispose )
return;
m_aDisposeEventListeners.addInterface( xListener );
@@ -212,7 +212,7 @@ void SAL_CALL ChineseTranslation_UnoDialog::addEventListener( const uno::Referen
void SAL_CALL ChineseTranslation_UnoDialog::removeEventListener( const uno::Reference< lang::XEventListener > & xListener ) throw (uno::RuntimeException)
{
- ::vos::OGuard aSolarGuard( Application::GetSolarMutex());
+ SolarMutexGuard aSolarGuard;
if( m_bDisposed || m_bInDispose )
return;
m_aDisposeEventListeners.removeInterface( xListener );
@@ -239,7 +239,7 @@ uno::Any SAL_CALL ChineseTranslation_UnoDialog::getPropertyValue( const ::rtl::O
sal_Bool bTranslateCommonTerms = sal_False;
{
- ::vos::OGuard aSolarGuard( Application::GetSolarMutex());
+ SolarMutexGuard aSolarGuard;
if( m_bDisposed || m_bInDispose || !m_pDialog )
return aRet;
m_pDialog->getSettings( bDirectionToSimplified, bUseCharacterVariants, bTranslateCommonTerms );