From c1e42d60c572d23c61a703cd66495eab1cea4e05 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 11 Dec 2012 08:16:08 +0200 Subject: fdo#46808, use service constructor for ui::WindowStateConfiguration Change-Id: I0b7f773a7db47049d7df4138d07e7fc38c657a65 --- vbahelper/source/vbahelper/vbacommandbarhelper.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'vbahelper') diff --git a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx index 9595def041dd..5bfd4d213ab7 100644 --- a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx +++ b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -109,14 +110,12 @@ void VbaCommandBarHelper::Init( ) throw (css::uno::RuntimeException) throw uno::RuntimeException( "Not implemented" , uno::Reference< uno::XInterface >() ); } - uno::Reference< lang::XMultiServiceFactory > xServiceManager( mxContext->getServiceManager(), uno::UNO_QUERY_THROW ); - css::uno::Reference< css::ui::XModuleUIConfigurationManagerSupplier > xUICfgMgrSupp( css::ui::ModuleUIConfigurationManagerSupplier::create(mxContext) ); m_xAppCfgMgr.set( xUICfgMgrSupp->getUIConfigurationManager( maModuleId ), uno::UNO_QUERY_THROW ); - css::uno::Reference< css::container::XNameAccess > xNameAccess( xServiceManager->createInstance( "com.sun.star.ui.WindowStateConfiguration" ), uno::UNO_QUERY_THROW ); + css::uno::Reference< css::container::XNameAccess > xNameAccess = css::ui::WindowStateConfiguration::create( mxContext ); m_xWindowState.set( xNameAccess->getByName( maModuleId ), uno::UNO_QUERY_THROW ); } -- cgit