diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-13 01:47:23 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-25 19:55:36 -0500 |
commit | 18a9a87a805b94ad8f7b8a67d63a8568bfd295e7 (patch) | |
tree | 5114eb2cabf9872df50dfb0ca8fd23c7378cd4f0 /svtools/source/graphic/graphic.cxx | |
parent | create a class SolarMutexGuard to take a Guard on the SolarMutex (diff) | |
download | core-18a9a87a805b94ad8f7b8a67d63a8568bfd295e7.tar.gz core-18a9a87a805b94ad8f7b8a67d63a8568bfd295e7.zip |
use SolarMutexGuard to guard the SolarMutex
Diffstat (limited to 'svtools/source/graphic/graphic.cxx')
-rw-r--r-- | svtools/source/graphic/graphic.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/graphic/graphic.cxx b/svtools/source/graphic/graphic.cxx index 92aebbeeda53..34fade3fe7ad 100644 --- a/svtools/source/graphic/graphic.cxx +++ b/svtools/source/graphic/graphic.cxx @@ -117,7 +117,7 @@ void SAL_CALL Graphic::release() throw() uno::Sequence< sal_Int8 > SAL_CALL Graphic::getImplementationId_Static() throw(uno::RuntimeException) { - vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; static uno::Sequence< sal_Int8 > aId; if( aId.getLength() == 0 ) @@ -236,7 +236,7 @@ uno::Sequence< sal_Int8 > SAL_CALL Graphic::getImplementationId() awt::Size SAL_CALL Graphic::getSize( ) throw (uno::RuntimeException) { - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; ::Size aVclSize; if( mpGraphic && ( mpGraphic->GetType() != GRAPHIC_NONE ) ) @@ -249,7 +249,7 @@ awt::Size SAL_CALL Graphic::getSize( ) throw (uno::RuntimeException) uno::Sequence< ::sal_Int8 > SAL_CALL Graphic::getDIB( ) throw (uno::RuntimeException) { - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if( mpGraphic && ( mpGraphic->GetType() != GRAPHIC_NONE ) ) { @@ -267,7 +267,7 @@ uno::Sequence< ::sal_Int8 > SAL_CALL Graphic::getDIB( ) throw (uno::RuntimeExce uno::Sequence< ::sal_Int8 > SAL_CALL Graphic::getMaskDIB( ) throw (uno::RuntimeException) { - ::vos::OGuard aGuard( Application::GetSolarMutex() ); + SolarMutexGuard aGuard; if( mpGraphic && ( mpGraphic->GetType() != GRAPHIC_NONE ) ) { |