diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-21 11:07:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-21 14:23:07 +0200 |
commit | d7824bf16898d8cb776420e0c2bff82e6df61b86 (patch) | |
tree | 88405234c55eb24a3d7770c833ac8eeea2db412e /sfx2/source/dialog/backingwindow.cxx | |
parent | f05d0d05829dd51cb9d8071ac97cc219779ee40a (diff) |
loplugin:unusedfields in sfx2 part2
Change-Id: I227b643641250d47ac6b2218f57ddb231765960e
Reviewed-on: https://gerrit.libreoffice.org/39038
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/dialog/backingwindow.cxx')
-rw-r--r-- | sfx2/source/dialog/backingwindow.cxx | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx index 142a571b6e45..67d1f7d4217d 100644 --- a/sfx2/source/dialog/backingwindow.cxx +++ b/sfx2/source/dialog/backingwindow.cxx @@ -72,8 +72,7 @@ BackingWindow::BackingWindow( vcl::Window* i_pParent ) : Window( i_pParent ), mbLocalViewInitialized(false), maButtonsTextColor(officecfg::Office::Common::Help::StartCenter::StartCenterTextColor::get()), - mbInitControls( false ), - mnHideExternalLinks( 0 ) + mbInitControls( false ) { m_pUIBuilder.reset(new VclBuilder(this, getUIRootDir(), "sfx/ui/startcenter.ui", "StartCenter" )); @@ -128,21 +127,6 @@ BackingWindow::BackingWindow( vcl::Window* i_pParent ) : try { mxContext.set( ::comphelper::getProcessComponentContext(), uno::UNO_SET_THROW ); - Reference<lang::XMultiServiceFactory> xConfig = configuration::theDefaultProvider::get( mxContext ); - Sequence<Any> args(1); - PropertyValue val( - "nodepath", - 0, - Any(OUString("/org.openoffice.Office.Common/Help/StartCenter")), - PropertyState_DIRECT_VALUE); - args.getArray()[0] <<= val; - Reference<container::XNameAccess> xNameAccess(xConfig->createInstanceWithArguments(SERVICENAME_CFGREADACCESS,args), UNO_QUERY); - if( xNameAccess.is() ) - { - //throws css::container::NoSuchElementException, css::lang::WrappedTargetException - Any value( xNameAccess->getByName("StartCenterHideExternalLinks") ); - mnHideExternalLinks = value.get<sal_Int32>(); - } } catch (const Exception& e) { |