diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-24 09:10:00 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-24 10:26:56 +0200 |
commit | 0c62e89bcc1a353c292b93f88e5f164df546d224 (patch) | |
tree | 87af673bb1ddf38a9a2f7b9f19712ab30c174dbc /sfx2 | |
parent | 2670d43a840276d990a1c3bd993c06faa42e8b1d (diff) |
loplugin:unusedfields some writeonly fields
Change-Id: I08dbc46956a09a0be0b8a045560a2204de2b222c
Reviewed-on: https://gerrit.libreoffice.org/40356
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/shutdownicon.cxx | 6 | ||||
-rw-r--r-- | sfx2/source/appl/shutdownicon.hxx | 1 |
2 files changed, 0 insertions, 7 deletions
diff --git a/sfx2/source/appl/shutdownicon.cxx b/sfx2/source/appl/shutdownicon.cxx index 9b013a94393f..80b8c2bf94dd 100644 --- a/sfx2/source/appl/shutdownicon.cxx +++ b/sfx2/source/appl/shutdownicon.cxx @@ -206,7 +206,6 @@ ShutdownIcon::ShutdownIcon( const css::uno::Reference< XComponentContext > & rxC m_bVeto ( false ), m_bListenForTermination ( false ), m_bSystemDialogs( false ), - m_pResLocale( nullptr ), m_pFileDlg( nullptr ), m_xContext( rxContext ), m_bInitialized( false ) @@ -541,12 +540,7 @@ ShutdownIcon* ShutdownIcon::createInstance() void ShutdownIcon::init() { - // access resource system and sfx only protected by solarmutex - ::SolarMutexGuard aSolarGuard; - std::locale *pResLocale = SfxResLocale::GetResLocale(); - ::osl::ResettableMutexGuard aGuard( m_aMutex ); - m_pResLocale = pResLocale; aGuard.clear(); css::uno::Reference < XDesktop2 > xDesktop = Desktop::create( m_xContext ); aGuard.reset(); diff --git a/sfx2/source/appl/shutdownicon.hxx b/sfx2/source/appl/shutdownicon.hxx index 455fe4cd4043..67abad2b6ce0 100644 --- a/sfx2/source/appl/shutdownicon.hxx +++ b/sfx2/source/appl/shutdownicon.hxx @@ -67,7 +67,6 @@ class SFX2_DLLPUBLIC ShutdownIcon : public ShutdownIconServiceBase bool m_bVeto; bool m_bListenForTermination; bool m_bSystemDialogs; - std::locale* m_pResLocale; sfx2::FileDialogHelper* m_pFileDlg; css::uno::Reference< css::uno::XComponentContext > m_xContext; |