diff options
author | Ariel Constenla-Haile <arielch@apache.org> | 2013-01-04 18:58:16 +0000 |
---|---|---|
committer | Ariel Constenla-Haile <arielch@apache.org> | 2013-01-04 18:58:16 +0000 |
commit | be44a7a90ab5428ccdc924684dad463b36a8be48 (patch) | |
tree | 3e698350e79d4ea9252649f224d43c8177c01ad3 /uui | |
parent | ace4202dfa5f352ec24841c90c7affddd1cbb21c (diff) |
i121578 - Convert css.system.SystemShellExectue to new-style
Adapt the office code to use the new-style service constructor
Notes
Notes:
prefer: d26f3acf2874f64fd89c8197163651443d4b1733
Diffstat (limited to 'uui')
-rw-r--r-- | uui/source/newerverwarn.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/uui/source/newerverwarn.cxx b/uui/source/newerverwarn.cxx index e243223a8bca..19508eb5fd68 100644 --- a/uui/source/newerverwarn.cxx +++ b/uui/source/newerverwarn.cxx @@ -27,7 +27,7 @@ #include <com/sun/star/frame/XDesktop.hpp> #include <com/sun/star/frame/XDispatchProvider.hpp> -#include <com/sun/star/system/XSystemShellExecute.hpp> +#include <com/sun/star/system/SystemShellExecute.hpp> #include <com/sun/star/system/SystemShellExecuteFlags.hpp> #include <com/sun/star/util/XURLTransformer.hpp> #include <com/sun/star/container/XNameReplace.hpp> @@ -98,12 +98,9 @@ IMPL_LINK( NewerVersionWarningDialog, UpdateHdl, PushButton*, EMPTYARG ) { if ( ( sNotifyURL.getLength() > 0 ) && ( m_sVersion.getLength() > 0 ) ) { - uno::Reference< lang::XMultiServiceFactory > xSMGR = - ::comphelper::getProcessServiceFactory(); uno::Reference< XSystemShellExecute > xSystemShell( - xSMGR->createInstance( ::rtl::OUString( - RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.system.SystemShellExecute" ) ) ), - uno::UNO_QUERY_THROW ); + com::sun::star::system::SystemShellExecute::create( + ::comphelper::getProcessComponentContext() ) ); sNotifyURL += m_sVersion; if ( xSystemShell.is() && sNotifyURL.getLength() ) { |