diff options
author | Noel Grandin <noel@peralex.com> | 2012-10-18 11:37:13 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-10-29 17:32:57 +0100 |
commit | eebcaa02585bda0656ca1032082c4dd676de732d (patch) | |
tree | dcadfa83e28c72bfd8becbe2eddef0b476d29056 /desktop | |
parent | 96b60cf69bf973136c5755fe741a6c210b4915f7 (diff) |
fdo#46808, use service constructor for task::JobExecutor
Also remove some unnecessary fields.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/app.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index ae9b3571bed4..400da64ad8fc 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -66,7 +66,7 @@ #include <com/sun/star/configuration/InstallationIncompleteException.hpp> #include <com/sun/star/configuration/backend/BackendSetupException.hpp> #include <com/sun/star/configuration/backend/BackendAccessException.hpp> -#include <com/sun/star/task/XJobExecutor.hpp> +#include <com/sun/star/task/JobExecutor.hpp> #include <com/sun/star/task/XRestartManager.hpp> #include <com/sun/star/document/XEventListener.hpp> #include <com/sun/star/frame/UICommandDescription.hpp> @@ -2893,9 +2893,8 @@ void Desktop::DoFirstRunInitializations() { try { - Reference< XJobExecutor > xExecutor( ::comphelper::getProcessServiceFactory()->createInstance( ::rtl::OUString("com.sun.star.task.JobExecutor") ), UNO_QUERY ); - if( xExecutor.is() ) - xExecutor->trigger( ::rtl::OUString("onFirstRunInitialization") ); + Reference< XJobExecutor > xExecutor = JobExecutor::create( ::comphelper::getProcessComponentContext() ); + xExecutor->trigger( ::rtl::OUString("onFirstRunInitialization") ); } catch(const ::com::sun::star::uno::Exception&) { |