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 /sd | |
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 'sd')
-rw-r--r-- | sd/source/ui/slideshow/slideshowimpl.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index 2cc9d30f8bf2..e0d3c9aa17ca 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -26,7 +26,8 @@ * ************************************************************************/ -#include "com/sun/star/frame/XComponentLoader.hpp" +#include <com/sun/star/frame/AutoRecovery.hpp> +#include <com/sun/star/frame/XComponentLoader.hpp> #include <com/sun/star/lang/XInitialization.hpp> #include <com/sun/star/document/XEventsSupplier.hpp> #include <com/sun/star/drawing/XMasterPageTarget.hpp> @@ -2852,7 +2853,6 @@ void SlideshowImpl::setAutoSaveState( bool bOn) { try { - uno::Reference<lang::XMultiServiceFactory> xFac( ::comphelper::getProcessServiceFactory() ); uno::Reference<uno::XComponentContext> xContext( ::comphelper::getProcessComponentContext() ); uno::Reference< util::XURLTransformer > xParser(util::URLTransformer::create(xContext)); @@ -2864,9 +2864,7 @@ void SlideshowImpl::setAutoSaveState( bool bOn) aArgs[0].Name = "AutoSaveState"; aArgs[0].Value <<= bOn ? sal_True : sal_False; - uno::Reference< frame::XDispatch > xAutoSave( - xFac->createInstance( "com.sun.star.frame.AutoRecovery" ), - uno::UNO_QUERY_THROW); + uno::Reference< frame::XDispatch > xAutoSave = frame::AutoRecovery::create(xContext); xAutoSave->dispatch(aURL, aArgs); } catch( Exception& ) |