From 357e1c0f8dc6efc9ef05d635173dd32a617e1708 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 13 May 2013 13:51:44 +0200 Subject: fdo#46808, Convert setup::UpdateCheck service to new style The service already existed, it just needed an IDL file Change-Id: Ide9fe23861d43845e242d4637b3ef9673b30e068 --- cui/source/options/treeopt.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'cui/source') diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index 78e127b2b383..6d31b469d078 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -60,6 +60,7 @@ #include #include #include +#include #include #include #include @@ -1553,17 +1554,13 @@ void OfaTreeOptionsDialog::Initialize( const Reference< XFrame >& _xFrame ) // Disable Online Update page if service not installed if( RID_SVXPAGE_ONLINEUPDATE == nPageId ) { - const OUString sService = "com.sun.star.setup.UpdateCheck"; - try { - Reference < XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() ); - Reference < XInterface > xService( xFactory->createInstance( sService ) ); - + Reference < XInterface > xService( setup::UpdateCheck::create( ::comphelper::getProcessComponentContext() ) ); if( ! xService.is() ) continue; } - catch ( ::com::sun::star::loader::CannotActivateFactoryException& ) + catch ( ::com::sun::star::uno::DeploymentException& ) { continue; } -- cgit v1.2.3