summaryrefslogtreecommitdiff
path: root/svx/source/unodraw/XPropertyTable.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/unodraw/XPropertyTable.cxx')
-rw-r--r--svx/source/unodraw/XPropertyTable.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/unodraw/XPropertyTable.cxx b/svx/source/unodraw/XPropertyTable.cxx
index 8b6a5b6415..cd68bddf19 100644
--- a/svx/source/unodraw/XPropertyTable.cxx
+++ b/svx/source/unodraw/XPropertyTable.cxx
@@ -134,7 +134,7 @@ sal_Bool SAL_CALL SvxUnoXPropertyTable::supportsService( const OUString& Servic
void SAL_CALL SvxUnoXPropertyTable::insertByName( const OUString& aName, const uno::Any& aElement )
throw( lang::IllegalArgumentException, container::ElementExistException, lang::WrappedTargetException, uno::RuntimeException)
{
- OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
if( NULL == mpList && NULL == mpTable )
throw lang::IllegalArgumentException();
@@ -158,7 +158,7 @@ void SAL_CALL SvxUnoXPropertyTable::insertByName( const OUString& aName, const
void SAL_CALL SvxUnoXPropertyTable::removeByName( const OUString& Name )
throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException)
{
- OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
String aInternalName;
SvxUnogetInternalNameForItem( mnWhich, Name, aInternalName );
@@ -186,7 +186,7 @@ void SAL_CALL SvxUnoXPropertyTable::removeByName( const OUString& Name )
void SAL_CALL SvxUnoXPropertyTable::replaceByName( const OUString& aName, const uno::Any& aElement )
throw( lang::IllegalArgumentException, container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException)
{
- OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
String aInternalName;
SvxUnogetInternalNameForItem( mnWhich, aName, aInternalName );
@@ -218,7 +218,7 @@ void SAL_CALL SvxUnoXPropertyTable::replaceByName( const OUString& aName, const
uno::Any SAL_CALL SvxUnoXPropertyTable::getByName( const OUString& aName )
throw( container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException)
{
- OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
String aInternalName;
SvxUnogetInternalNameForItem( mnWhich, aName, aInternalName );
@@ -240,7 +240,7 @@ uno::Any SAL_CALL SvxUnoXPropertyTable::getByName( const OUString& aName )
uno::Sequence< OUString > SAL_CALL SvxUnoXPropertyTable::getElementNames()
throw( uno::RuntimeException)
{
- OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
const long nCount = getCount();
uno::Sequence< OUString > aNames( nCount );
@@ -264,7 +264,7 @@ uno::Sequence< OUString > SAL_CALL SvxUnoXPropertyTable::getElementNames()
sal_Bool SAL_CALL SvxUnoXPropertyTable::hasByName( const OUString& aName )
throw( uno::RuntimeException)
{
- OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
String aInternalName;
SvxUnogetInternalNameForItem( mnWhich, aName, aInternalName );
@@ -286,7 +286,7 @@ sal_Bool SAL_CALL SvxUnoXPropertyTable::hasByName( const OUString& aName )
sal_Bool SAL_CALL SvxUnoXPropertyTable::hasElements( )
throw( uno::RuntimeException)
{
- OGuard aGuard( Application::GetSolarMutex() );
+ SolarMutexGuard aGuard;
return getCount() != 0;
}