From 03a9f139bd9ea1a4f9096fc982e6b326def58532 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 19 Sep 2012 13:15:15 +0200 Subject: ComponentContext::getUnoContext -> getComponentContext simplification ...and some further clean-up. Change-Id: If5dce53e382b56390c502d0d0d93fc06cbfe33ea --- unotools/source/config/moduleoptions.cxx | 3 +-- unotools/source/i18n/localedatawrapper.cxx | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'unotools') diff --git a/unotools/source/config/moduleoptions.cxx b/unotools/source/config/moduleoptions.cxx index e81f3ad7f955..1d008d74d65b 100644 --- a/unotools/source/config/moduleoptions.cxx +++ b/unotools/source/config/moduleoptions.cxx @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include @@ -271,7 +270,7 @@ struct FactoryInfo { if ( !xSubstVars.is() ) { - css::uno::Reference< css::uno::XComponentContext > xContext( comphelper::ComponentContext(xSMgr).getUNOContext() ); + css::uno::Reference< css::uno::XComponentContext > xContext( comphelper::getComponentContext(xSMgr) ); xSubstVars = css::uno::Reference< css::util::XStringSubstitution >( css::util::PathSubstitution::create(xContext) ); diff --git a/unotools/source/i18n/localedatawrapper.cxx b/unotools/source/i18n/localedatawrapper.cxx index 93eda0d0fd2c..d6dee74d9435 100644 --- a/unotools/source/i18n/localedatawrapper.cxx +++ b/unotools/source/i18n/localedatawrapper.cxx @@ -37,7 +37,7 @@ #include #include -#include +#include #include #include #include @@ -71,7 +71,7 @@ LocaleDataWrapper::LocaleDataWrapper( ) : xSMgr( xSF ), - xLD( LocaleData::create(comphelper::ComponentContext(xSMgr).getUNOContext()) ), + xLD( LocaleData::create(comphelper::getComponentContext(xSMgr)) ), bLocaleDataItemValid( sal_False ), bReservedWordValid( sal_False ) { -- cgit