summaryrefslogtreecommitdiff
path: root/unotools/source/config/historyoptions.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/source/config/historyoptions.cxx')
-rw-r--r--unotools/source/config/historyoptions.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/unotools/source/config/historyoptions.cxx b/unotools/source/config/historyoptions.cxx
index 1cd25871da49..6dd84417ff7c 100644
--- a/unotools/source/config/historyoptions.cxx
+++ b/unotools/source/config/historyoptions.cxx
@@ -523,17 +523,21 @@ void SvtHistoryOptions_Impl::DeleteItem(EHistoryType eHistory, const OUString& s
}
}
-std::weak_ptr<SvtHistoryOptions_Impl> m_pHistoryOptions;
+namespace {
+
+std::weak_ptr<SvtHistoryOptions_Impl> g_pHistoryOptions;
+
+}
SvtHistoryOptions::SvtHistoryOptions()
{
MutexGuard aGuard(theHistoryOptionsMutex::get());
- m_pImpl = m_pHistoryOptions.lock();
+ m_pImpl = g_pHistoryOptions.lock();
if( !m_pImpl )
{
m_pImpl = std::make_shared<SvtHistoryOptions_Impl>();
- m_pHistoryOptions = m_pImpl;
+ g_pHistoryOptions = m_pImpl;
ItemHolder1::holdConfigItem(E_HISTORYOPTIONS);
}
}