diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-13 01:41:46 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-25 17:54:58 -0500 |
commit | defa3490b432f331b0f27a9ab14795f476cd3990 (patch) | |
tree | cb6bbcb7c11b985cdc1f27b446613acdfeaaccd5 /chart2/source/controller/main/DrawCommandDispatch.cxx | |
parent | 372eeaa6f8b5b383537f7d76aae6f042a0878090 (diff) |
use SolarMutexGuard to guard the SolarMutex
Diffstat (limited to 'chart2/source/controller/main/DrawCommandDispatch.cxx')
-rw-r--r-- | chart2/source/controller/main/DrawCommandDispatch.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/main/DrawCommandDispatch.cxx b/chart2/source/controller/main/DrawCommandDispatch.cxx index 1fd6b624c30f..874533810d0c 100644 --- a/chart2/source/controller/main/DrawCommandDispatch.cxx +++ b/chart2/source/controller/main/DrawCommandDispatch.cxx @@ -385,7 +385,7 @@ void DrawCommandDispatch::execute( const ::rtl::OUString& rCommand, const Sequen DrawViewWrapper* pDrawViewWrapper = m_pChartController->GetDrawViewWrapper(); if ( pDrawViewWrapper ) { - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; m_pChartController->setDrawMode( eDrawMode ); setInsertObj( sal::static_int_cast< USHORT >( eKind ) ); if ( bCreate ) @@ -465,7 +465,7 @@ SdrObject* DrawCommandDispatch::createDefaultObject( const sal_uInt16 nID ) SdrPage* pPage = GetSdrPageFromXDrawPage( xDrawPage ); if ( pPage ) { - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; pObj = SdrObjFactory::MakeNewObject( pDrawViewWrapper->GetCurrentObjInventor(), pDrawViewWrapper->GetCurrentObjIdentifier(), pPage ); if ( pObj ) |