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 --- sc/source/ui/view/viewfun5.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/view/viewfun5.cxx b/sc/source/ui/view/viewfun5.cxx index ecd015242c4e..c320fc1dbe9b 100644 --- a/sc/source/ui/view/viewfun5.cxx +++ b/sc/source/ui/view/viewfun5.cxx @@ -19,6 +19,7 @@ #include #include +#include #include @@ -215,9 +216,8 @@ sal_Bool ScViewFunc::PasteDataFormat( sal_uLong nFormatId, try { uno::Reference< embed::XStorage > xTmpStor = ::comphelper::OStorageHelper::GetTemporaryStorage(); - uno::Reference < embed::XEmbedObjectClipboardCreator > xClipboardCreator( - ::comphelper::getProcessServiceFactory()->createInstance( OUString("com.sun.star.embed.MSOLEObjectSystemCreator") ), - uno::UNO_QUERY_THROW ); + uno::Reference < embed::XEmbedObjectClipboardCreator > xClipboardCreator = + embed::MSOLEObjectSystemCreator::create( ::comphelper::getProcessComponentContext() ); embed::InsertedObjectInfo aInfo = xClipboardCreator->createInstanceInitFromClipboard( xTmpStor, -- cgit