diff options
-rw-r--r-- | oox/source/helper/propertymap.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/oox/source/helper/propertymap.cxx b/oox/source/helper/propertymap.cxx index 5a153be275d5..7c26267d4678 100644 --- a/oox/source/helper/propertymap.cxx +++ b/oox/source/helper/propertymap.cxx @@ -98,7 +98,7 @@ typedef ::cppu::WeakImplHelper2< XPropertySet, XPropertySetInfo > GenericPropert Properties of all names and types can be set and later retrieved. TODO: move this to comphelper or better find an existing implementation */ -class GenericPropertySet : public GenericPropertySetBase, private ::osl::Mutex +class GenericPropertySet : public GenericPropertySetBase { public: explicit GenericPropertySet( const PropertyMap& rPropMap ); @@ -118,6 +118,7 @@ public: virtual sal_Bool SAL_CALL hasPropertyByName( const OUString& Name ) throw (RuntimeException, std::exception); private: + osl::Mutex mMutex; PropertyNameMap maPropMap; }; @@ -133,7 +134,7 @@ Reference< XPropertySetInfo > SAL_CALL GenericPropertySet::getPropertySetInfo() void SAL_CALL GenericPropertySet::setPropertyValue( const OUString& rPropertyName, const Any& rValue ) throw (UnknownPropertyException, PropertyVetoException, IllegalArgumentException, WrappedTargetException, RuntimeException, std::exception) { - ::osl::MutexGuard aGuard( *this ); + ::osl::MutexGuard aGuard( mMutex ); maPropMap[ rPropertyName ] = rValue; } |