summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svtools/source/config/toolpanelopt.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/svtools/source/config/toolpanelopt.cxx b/svtools/source/config/toolpanelopt.cxx
index 5294886095fe..1b8929bf5cc2 100644
--- a/svtools/source/config/toolpanelopt.cxx
+++ b/svtools/source/config/toolpanelopt.cxx
@@ -297,18 +297,22 @@ Sequence< OUString > SvtToolPanelOptions_Impl::GetPropertyNames()
return Sequence< OUString >( pProperties, SAL_N_ELEMENTS( pProperties ) );
}
-std::weak_ptr<SvtToolPanelOptions_Impl> m_pOptions;
+namespace {
+
+std::weak_ptr<SvtToolPanelOptions_Impl> theOptions;
+
+}
SvtToolPanelOptions::SvtToolPanelOptions()
{
// Global access, must be guarded (multithreading!).
MutexGuard aGuard( GetInitMutex() );
- m_pImpl = m_pOptions.lock();
+ m_pImpl = theOptions.lock();
if( !m_pImpl )
{
m_pImpl = std::make_shared<SvtToolPanelOptions_Impl>();
- m_pOptions = m_pImpl;
+ theOptions = m_pImpl;
}
}