From 34da7fbcc643ad209290c6da456dbfb17aeb9ac0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 20 Mar 2013 09:22:06 +0200 Subject: fdo#46808, convert embed::MSOLEObjectSystemCreator to new style the service already existed, it just needed an IDL file Change-Id: Iccd283f3537f8c8d57b2c2d68609dd9ef025da0b --- cui/source/dialogs/insdlg.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'cui/source') diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx index 80c91331f4f9..08f8dd395ff0 100644 --- a/cui/source/dialogs/insdlg.cxx +++ b/cui/source/dialogs/insdlg.cxx @@ -17,19 +17,20 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include #include -#include -#include #include -#include -#include -#include -#include -#include -#include #include "insdlg.hxx" #include @@ -227,8 +228,7 @@ short SvInsertOleDlg::Execute() try { uno::Reference < embed::XInsertObjectDialog > xDialogCreator( - ::comphelper::getProcessServiceFactory()->createInstance( - "com.sun.star.embed.MSOLEObjectSystemCreator" ), + embed::MSOLEObjectSystemCreator::create( ::comphelper::getProcessComponentContext() ), uno::UNO_QUERY ); if ( xDialogCreator.is() ) -- cgit