From bc00717bb7a2b48885ca356fb0a966acbe72dca9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 29 Aug 2012 07:45:05 +0200 Subject: fdo#46808, Adapt system::SystemShellExecute UNO service to new style Change-Id: Ib298b3219c3e89dd35bce0974846ed4888ed941e --- toolkit/source/awt/vclxwindows.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'toolkit') 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 #include #include -#include +#include #include #include #include @@ -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 { -- cgit