diff options
author | Noel Grandin <noel@peralex.com> | 2012-10-18 10:58:02 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-10-29 17:32:55 +0100 |
commit | 39c556da3180bc507d9fae5e26bcdf81ea193938 (patch) | |
tree | 4d4e1e6ae7571db9c14a0df0cc015f73f27db33c /desktop | |
parent | 7f4e5c8c6f293782fa772c7cf6ad7f8e5992db8b (diff) |
fdo#46808, Create new-style frame::AutoRecovery service
The service already existed, it just did not have an IDL file.
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/app.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index cff9f8ed65e6..ae9b3571bed4 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -43,6 +43,7 @@ #include "migration.hxx" #include <svtools/javacontext.hxx> +#include <com/sun/star/frame/AutoRecovery.hpp> #include <com/sun/star/frame/GlobalEventBroadcaster.hpp> #include <com/sun/star/frame/XSessionManagerListener.hpp> #include <com/sun/star/frame/XSynchronousDispatch.hpp> @@ -2357,11 +2358,8 @@ void Desktop::OpenClients() { try { - Reference< XDispatch > xRecovery( - ::comphelper::getProcessServiceFactory()->createInstance( OUString("com.sun.star.frame.AutoRecovery") ), - ::com::sun::star::uno::UNO_QUERY_THROW ); - - Reference< css::util::XURLTransformer > xParser( css::util::URLTransformer::create(::comphelper::getProcessComponentContext()) ); + Reference< XDispatch > xRecovery = css::frame::AutoRecovery::create( ::comphelper::getProcessComponentContext() ); + Reference< css::util::XURLTransformer > xParser = css::util::URLTransformer::create( ::comphelper::getProcessComponentContext() ); css::util::URL aCmd; aCmd.Complete = ::rtl::OUString("vnd.sun.star.autorecovery:/disableRecovery"); |