summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--framework/source/fwe/classes/addonsoptions.cxx10
-rw-r--r--include/framework/addonsoptions.hxx9
2 files changed, 6 insertions, 13 deletions
diff --git a/framework/source/fwe/classes/addonsoptions.cxx b/framework/source/fwe/classes/addonsoptions.cxx
index 12e7ca94e1af..9deffd4e5e4c 100644
--- a/framework/source/fwe/classes/addonsoptions.cxx
+++ b/framework/source/fwe/classes/addonsoptions.cxx
@@ -275,6 +275,8 @@ class AddonsOptions_Impl : public ConfigItem
Sequence< OUString > GetPropertyNamesImages( const OUString& aPropertyRootNode ) const;
bool CreateImageFromSequence( Image& rImage, Sequence< sal_Int8 >& rBitmapDataSeq ) const;
+ DECL_LINK_TYPED(NotifyEvent, void*, void);
+
virtual void ImplCommit() override;
// private member
@@ -409,7 +411,7 @@ void AddonsOptions_Impl::ReadConfigurationData()
void AddonsOptions_Impl::Notify( const Sequence< OUString >& /*lPropertyNames*/ )
{
- Application::PostUserEvent( LINK( nullptr, AddonsOptions, Notify ) );
+ Application::PostUserEvent(LINK(this, AddonsOptions_Impl, NotifyEvent));
}
// public method
@@ -1613,10 +1615,10 @@ Mutex& AddonsOptions::GetOwnStaticMutex()
return *pMutex;
}
-IMPL_LINK_NOARG_TYPED( AddonsOptions, Notify, void*, void )
+IMPL_LINK_NOARG_TYPED(AddonsOptions_Impl, NotifyEvent, void*, void)
{
- MutexGuard aGuard( GetOwnStaticMutex() );
- m_pImpl->ReadConfigurationData();
+ MutexGuard aGuard(AddonsOptions::GetOwnStaticMutex());
+ ReadConfigurationData();
}
}
diff --git a/include/framework/addonsoptions.hxx b/include/framework/addonsoptions.hxx
index e0c40136edfe..30a46a9ff841 100644
--- a/include/framework/addonsoptions.hxx
+++ b/include/framework/addonsoptions.hxx
@@ -207,15 +207,6 @@ class FWE_DLLPUBLIC AddonsOptions
static ::osl::Mutex& GetOwnStaticMutex();
- /*-****************************************************************************************************
- @short return a reference to a static mutex
- @descr These class is partially threadsafe (for de-/initialization only).
- All access methods are'nt safe!
- We create a static mutex only for one ime and use at different times.
- @return A reference to a static mutex member.
- *//*-*****************************************************************************************************/
- DECL_LINK_TYPED( Notify, void*, void );
-
private:
std::shared_ptr<AddonsOptions_Impl> m_pImpl;
};