diff options
Diffstat (limited to 'unotools/source/config/printwarningoptions.cxx')
-rw-r--r-- | unotools/source/config/printwarningoptions.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unotools/source/config/printwarningoptions.cxx b/unotools/source/config/printwarningoptions.cxx index 42b1059759eb..e325f63b92c5 100644 --- a/unotools/source/config/printwarningoptions.cxx +++ b/unotools/source/config/printwarningoptions.cxx @@ -221,18 +221,18 @@ Sequence< OUString > SvtPrintWarningOptions_Impl::impl_GetPropertyNames() return seqPropertyNames; } -std::weak_ptr<SvtPrintWarningOptions_Impl> m_pPrintWarningOptions; +std::weak_ptr<SvtPrintWarningOptions_Impl> g_pPrintWarningOptions; SvtPrintWarningOptions::SvtPrintWarningOptions() { // Global access, must be guarded (multithreading!). MutexGuard aGuard( GetOwnStaticMutex() ); - m_pImpl = m_pPrintWarningOptions.lock(); + m_pImpl = g_pPrintWarningOptions.lock(); if( !m_pImpl ) { m_pImpl = std::make_shared<SvtPrintWarningOptions_Impl>(); - m_pPrintWarningOptions = m_pImpl; + g_pPrintWarningOptions = m_pImpl; ItemHolder1::holdConfigItem(E_PRINTWARNINGOPTIONS); } } |