summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdouno.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-03-08 14:06:05 +0200
committerNoel Grandin <noel@peralex.com>2013-03-20 07:32:52 +0200
commitb4b0b400071a0fd12587334e3b9d615f35be671b (patch)
treebbaadae1d60fda7c1195f5dbf9c055db1b5ea029 /svx/source/svdraw/svdouno.cxx
parent51a2b574bf6e163d34d2301c2b526a09cd7ff1aa (diff)
fdo#46808, cleanup some usage of getProcessServiceFactory()
Change-Id: I2ab4c7c0a19bd436c84e62bfc6aeda1fea079a44
Diffstat (limited to 'svx/source/svdraw/svdouno.cxx')
-rw-r--r--svx/source/svdraw/svdouno.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdouno.cxx b/svx/source/svdraw/svdouno.cxx
index daa6c07aab37..f9f2ca7b689b 100644
--- a/svx/source/svdraw/svdouno.cxx
+++ b/svx/source/svdraw/svdouno.cxx
@@ -485,11 +485,11 @@ void SdrUnoObj::CreateUnoControlModel(const String& rModelName)
aUnoControlModelTypeName = rModelName;
uno::Reference< awt::XControlModel > xModel;
- uno::Reference< lang::XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() );
- if (aUnoControlModelTypeName.Len() && xFactory.is() )
+ uno::Reference< uno::XComponentContext > xContext( ::comphelper::getProcessComponentContext() );
+ if (aUnoControlModelTypeName.Len() )
{
- xModel = uno::Reference< awt::XControlModel >(xFactory->createInstance(
- aUnoControlModelTypeName), uno::UNO_QUERY);
+ xModel = uno::Reference< awt::XControlModel >(xContext->getServiceManager()->createInstanceWithContext(
+ aUnoControlModelTypeName, xContext), uno::UNO_QUERY);
if (xModel.is())
SetChanged();