From 10362695c2060f6aa48bd88f6b8dd6cfa556392a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 23 Aug 2012 17:46:39 +0200 Subject: fdo#46808, Adapt ModuleUIConfigurationManagerSupplier UNO service to new style Change-Id: I58b17349474b974edd24aa17ec08ffa848a92ae9 --- vbahelper/source/vbahelper/vbacommandbarhelper.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vbahelper') diff --git a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx index 05772c178c18..b29d01463041 100644 --- a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx +++ b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #include "vbacommandbarhelper.hxx" +#include #include #include #include @@ -112,7 +113,8 @@ void VbaCommandBarHelper::Init( ) throw (css::uno::RuntimeException) uno::Reference< lang::XMultiServiceFactory > xServiceManager( mxContext->getServiceManager(), uno::UNO_QUERY_THROW ); - css::uno::Reference< css::ui::XModuleUIConfigurationManagerSupplier > xUICfgMgrSupp( xServiceManager->createInstance( rtl::OUString( "com.sun.star.ui.ModuleUIConfigurationManagerSupplier" )), 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 ); -- cgit v1.2.3