diff options
author | Noel Grandin <noel@peralex.com> | 2012-08-29 07:45:05 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-09-03 15:55:05 +0200 |
commit | bc00717bb7a2b48885ca356fb0a966acbe72dca9 (patch) | |
tree | 3eacf7bb54893d7380789d1a2e9ffbb759da16ba /toolkit | |
parent | 7dd6c0a8372810f48e6bee35a11ac4ad0432640b (diff) |
fdo#46808, Adapt system::SystemShellExecute UNO service to new style
Change-Id: Ib298b3219c3e89dd35bce0974846ed4888ed941e
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/awt/vclxwindows.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/toolkit/source/awt/vclxwindows.cxx b/toolkit/source/awt/vclxwindows.cxx index 88ae10ad077e..4ba4fc2355cf 100644 --- a/toolkit/source/awt/vclxwindows.cxx +++ b/toolkit/source/awt/vclxwindows.cxx @@ -41,7 +41,7 @@ #include <cppuhelper/typeprovider.hxx> #include <com/sun/star/awt/VisualEffect.hpp> #include <com/sun/star/lang/XMultiServiceFactory.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/resource/XStringResourceResolver.hpp> #include <com/sun/star/awt/ImageScaleMode.hpp> @@ -2961,10 +2961,9 @@ void VCLXFixedHyperlink::ProcessWindowEvent( const VclWindowEvent& rVclWindowEve ::toolkit::FixedHyperlinkBase* pBase = (::toolkit::FixedHyperlinkBase*)GetWindow(); if ( pBase ) sURL = pBase->GetURL(); - Reference< ::com::sun::star::system::XSystemShellExecute > xSystemShellExecute( - ::comphelper::getProcessServiceFactory()->createInstance( - ::rtl::OUString("com.sun.star.system.SystemShellExecute")), uno::UNO_QUERY ); - if ( !sURL.isEmpty() && xSystemShellExecute.is() ) + Reference< system::XSystemShellExecute > xSystemShellExecute( system::SystemShellExecute::create( + ::comphelper::getProcessComponentContext() ) ); + if ( !sURL.isEmpty() ) { try { |