From 7634d064adc2c773288cec751674ff691de20b2b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 21 Aug 2012 10:30:08 +0200 Subject: fdo#46808, Adapt UNO service registry::ImplementationRegistration Change-Id: I77d28e7575e18e682f8360f6e416954dfb7a4e30 --- vcl/source/app/unohelp.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vcl') diff --git a/vcl/source/app/unohelp.cxx b/vcl/source/app/unohelp.cxx index 52f44171ad7c..3b144f52668c 100644 --- a/vcl/source/app/unohelp.cxx +++ b/vcl/source/app/unohelp.cxx @@ -41,13 +41,14 @@ #include #include #include +#include #include #include #include #include #include -#include +#include using namespace ::com::sun::star; @@ -101,7 +102,7 @@ uno::Reference< lang::XMultiServiceFactory > vcl::unohelper::GetMultiServiceFact { pSVData->maAppData.mxMSF = ::cppu::createRegistryServiceFactory( aTempFileName, rtl::OUString(), sal_False ); uno::Reference < registry::XImplementationRegistration > xReg( - pSVData->maAppData.mxMSF->createInstance( OUString("com.sun.star.registry.ImplementationRegistration")), uno::UNO_QUERY ); + registry::ImplementationRegistration::create( comphelper::ComponentContext(pSVData->maAppData.mxMSF).getUNOContext() ) ); if( xReg.is() ) { -- cgit