diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-14 22:09:00 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-25 19:55:33 -0500 |
commit | 4bd2ed6a919c1c970dda6e9f58b813d6b59a6eb5 (patch) | |
tree | 110fd94c216b47976a99ff070376aa352222948f /sfx2 | |
parent | dbd5e19301cfae96600724cfdcfa004a08b50afd (diff) |
convert OClearableGuard(SolarMutex) to SolarMutex(Clearable)Guard.
Most OClearableGuard of the Solar Mutex could be converted
to a simple SolarMutexGuard.
a couple of site were converted to a SolarMutexClearableGuard,
were converting to a SolarMutexGuard would have made the code more
convoluted.
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/doc/doctemplates.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/objmisc.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx index e5f0d6b5f7de..75420ecfd2d3 100644 --- a/sfx2/source/doc/doctemplates.cxx +++ b/sfx2/source/doc/doctemplates.cxx @@ -471,7 +471,7 @@ void SfxDocTplService_Impl::init_Impl() if ( bNeedsUpdate ) { aGuard.clear(); - ::vos::OClearableGuard aSolarGuard( Application::GetSolarMutex() ); + SolarMutexClearableGuard aSolarGuard; WaitWindow_Impl* pWin = new WaitWindow_Impl(); diff --git a/sfx2/source/doc/objmisc.cxx b/sfx2/source/doc/objmisc.cxx index d4f7bc8f17a1..bbc4ddb0aa05 100644 --- a/sfx2/source/doc/objmisc.cxx +++ b/sfx2/source/doc/objmisc.cxx @@ -1812,7 +1812,7 @@ ErrCode SfxObjectShell::CallStarBasicScript( const String& _rMacroName, const St const void* _pArguments, void* _pReturn ) { OSL_TRACE("in CallSBS"); - ::vos::OClearableGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aSolarGuard; // the arguments for the call SbxArrayRef xMacroArguments = lcl_translateUno2Basic( _pArguments ); @@ -1848,7 +1848,7 @@ ErrCode SfxObjectShell::CallScript( void *pRet ) { - ::vos::OClearableGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aSolarGuard; ErrCode nErr = ERRCODE_NONE; if( rScriptType.EqualsAscii( "StarBasic" ) ) { |