summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/moduleoptions.cxx23
1 files changed, 6 insertions, 17 deletions
diff --git a/unotools/source/config/moduleoptions.cxx b/unotools/source/config/moduleoptions.cxx
index 1468501220ec..ea3db01585c2 100644
--- a/unotools/source/config/moduleoptions.cxx
+++ b/unotools/source/config/moduleoptions.cxx
@@ -761,6 +761,12 @@ void SvtModuleOptions_Impl::MakeReadonlyStatesAvailable()
namespace {
//global
std::weak_ptr<SvtModuleOptions_Impl> g_pModuleOptions;
+
+osl::Mutex& impl_GetOwnStaticMutex()
+{
+ static osl::Mutex s_Mutex;
+ return s_Mutex;
+}
}
/*-************************************************************************************************************
@@ -907,23 +913,6 @@ bool SvtModuleOptions::IsDataBase() const
return m_pImpl->IsModuleInstalled( EModule::DATABASE );
}
-namespace
-{
- class theModuleOptionsMutex : public rtl::Static<osl::Mutex, theModuleOptionsMutex> {};
-}
-/*-****************************************************************************************************
- @short return a reference to a static mutex
- @descr These class is threadsafe.
- We create a static mutex only for one time and use it to protect our refcount and container
- member!
- @return A reference to a static mutex member.
- @threadsafe yes
-*//*-*****************************************************************************************************/
-::osl::Mutex& SvtModuleOptions::impl_GetOwnStaticMutex()
-{
- return theModuleOptionsMutex::get();
-}
-
OUString SvtModuleOptions::GetModuleName( EModule eModule ) const
{
switch( eModule )