summaryrefslogtreecommitdiff
path: root/sw/source/ui/envelp/labelexp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/envelp/labelexp.cxx')
-rw-r--r--sw/source/ui/envelp/labelexp.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/ui/envelp/labelexp.cxx b/sw/source/ui/envelp/labelexp.cxx
index a90eaef95e70..f3ae13ffa629 100644
--- a/sw/source/ui/envelp/labelexp.cxx
+++ b/sw/source/ui/envelp/labelexp.cxx
@@ -49,11 +49,11 @@ void SwVisitingCardPage::InitFrameControl()
pExampleFrame = new SwOneExampleFrame( aExampleWIN,
EX_SHOW_BUSINESS_CARDS, &aLink );
- uno::Reference< lang::XMultiServiceFactory > xMgr =
- getProcessServiceFactory();
+ Reference< XComponentContext > xContext = comphelper::getProcessComponentContext();
+
//now the AutoText ListBoxes have to be filled
- m_xAutoText = text::AutoTextContainer::create( comphelper::getComponentContext(xMgr) );
+ m_xAutoText = text::AutoTextContainer::create( xContext );
uno::Sequence<OUString> aNames = m_xAutoText->getElementNames();
const OUString* pGroups = aNames.getConstArray();