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 --- embeddedobj/source/msole/oleembed.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'embeddedobj') diff --git a/embeddedobj/source/msole/oleembed.cxx b/embeddedobj/source/msole/oleembed.cxx index 1a65e1a5efdb..c57955f697db 100644 --- a/embeddedobj/source/msole/oleembed.cxx +++ b/embeddedobj/source/msole/oleembed.cxx @@ -49,7 +49,7 @@ #include #include #include -#include +#include #include #include @@ -878,10 +878,9 @@ void SAL_CALL OleEmbeddedObject::doVerb( sal_Int32 nVerbID ) if (!m_aTempDumpURL.isEmpty()) { - uno::Reference< ::com::sun::star::system::XSystemShellExecute > xSystemShellExecute( m_xFactory->createInstance( - ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.system.SystemShellExecute"))), - uno::UNO_QUERY_THROW); - xSystemShellExecute->execute(m_aTempDumpURL, ::rtl::OUString(), ::com::sun::star::system::SystemShellExecuteFlags::URIS_ONLY); + uno::Reference< system::XSystemShellExecute > xSystemShellExecute( + system::SystemShellExecute::create(comphelper::ComponentContext(m_xFactory).getUNOContext()) ); + xSystemShellExecute->execute(m_aTempDumpURL, ::rtl::OUString(), system::SystemShellExecuteFlags::URIS_ONLY); } else throw embed::UnreachableStateException(); -- cgit