summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-05-13 13:51:44 +0200
committerNoel Grandin <noel@peralex.com>2013-05-14 08:08:25 +0200
commit357e1c0f8dc6efc9ef05d635173dd32a617e1708 (patch)
tree45f8d69afba235bc8c3498d5e882d590a2098548 /cui
parentef0af5032ad283ffb3b4521eb097a118d58f332a (diff)
fdo#46808, Convert setup::UpdateCheck service to new style
The service already existed, it just needed an IDL file Change-Id: Ide9fe23861d43845e242d4637b3ef9673b30e068
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/treeopt.cxx9
1 files changed, 3 insertions, 6 deletions
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 <com/sun/star/loader/CannotActivateFactoryException.hpp>
#include <com/sun/star/linguistic2/LinguProperties.hpp>
#include <com/sun/star/util/theMacroExpander.hpp>
+#include <com/sun/star/setup/UpdateCheck.hpp>
#include <comphelper/processfactory.hxx>
#include <editeng/langitem.hxx>
#include <editeng/optitems.hxx>
@@ -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;
}