diff options
author | Noel Grandin <noel@peralex.com> | 2012-10-16 14:05:41 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-10-24 11:29:53 +0200 |
commit | e8aa70b5d44a6cbedacfe0e5d1b1da2c76a3c588 (patch) | |
tree | 2cb20208eb30391718b57c6302d3dcd6b2e99673 /unotools | |
parent | 3688466ab127d7801b4cb752ee6205cc04acb2f7 (diff) |
fdo#46808, convert comphelper::ConfigurationHelper to XComponentContext
Convert the helper methods to take an XComponentContext parameter,
instead of XMultiServiceFactory.
Change-Id: I9f0098af37b91f107d8799f14caa04756eac82b1
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/historyoptions.cxx | 4 | ||||
-rw-r--r-- | unotools/source/config/saveopt.cxx | 4 | ||||
-rw-r--r-- | unotools/source/config/useroptions.cxx | 2 | ||||
-rw-r--r-- | unotools/source/config/viewoptions.cxx | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/unotools/source/config/historyoptions.cxx b/unotools/source/config/historyoptions.cxx index 00ff1684de57..141555044ec7 100644 --- a/unotools/source/config/historyoptions.cxx +++ b/unotools/source/config/historyoptions.cxx @@ -138,14 +138,14 @@ SvtHistoryOptions_Impl::SvtHistoryOptions_Impl() { m_xCfg = Reference< css::container::XNameAccess > ( ::comphelper::ConfigurationHelper::openConfig( - ::comphelper::getProcessServiceFactory(), + ::comphelper::getProcessComponentContext(), rtl::OUString(s_sHistories), ::comphelper::ConfigurationHelper::E_STANDARD), css::uno::UNO_QUERY ); m_xCommonXCU = Reference< css::container::XNameAccess > ( ::comphelper::ConfigurationHelper::openConfig( - ::comphelper::getProcessServiceFactory(), + ::comphelper::getProcessComponentContext(), rtl::OUString(s_sCommonHistory), ::comphelper::ConfigurationHelper::E_STANDARD), css::uno::UNO_QUERY ); diff --git a/unotools/source/config/saveopt.cxx b/unotools/source/config/saveopt.cxx index 18fc09a77784..7f43c5a6be16 100644 --- a/unotools/source/config/saveopt.cxx +++ b/unotools/source/config/saveopt.cxx @@ -552,7 +552,7 @@ SvtSaveOptions_Impl::SvtSaveOptions_Impl() try { css::uno::Reference< css::uno::XInterface > xCFG = ::comphelper::ConfigurationHelper::openConfig( - ::comphelper::getProcessServiceFactory(), + ::comphelper::getProcessComponentContext(), ::rtl::OUString("org.openoffice.Office.Recovery"), ::comphelper::ConfigurationHelper::E_READONLY); @@ -739,7 +739,7 @@ void SvtSaveOptions_Impl::Commit() PutProperties( aNames, aValues ); css::uno::Reference< css::uno::XInterface > xCFG = ::comphelper::ConfigurationHelper::openConfig( - ::comphelper::getProcessServiceFactory(), + ::comphelper::getProcessComponentContext(), ::rtl::OUString("org.openoffice.Office.Recovery"), ::comphelper::ConfigurationHelper::E_STANDARD); diff --git a/unotools/source/config/useroptions.cxx b/unotools/source/config/useroptions.cxx index 1da014a205bd..8af1121f9e42 100644 --- a/unotools/source/config/useroptions.cxx +++ b/unotools/source/config/useroptions.cxx @@ -146,7 +146,7 @@ SvtUserOptions::Impl::Impl() : { m_xCfg = uno::Reference<container::XNameAccess>( comphelper::ConfigurationHelper::openConfig( - comphelper::getProcessServiceFactory(), + comphelper::getProcessComponentContext(), sData, comphelper::ConfigurationHelper::E_STANDARD ), diff --git a/unotools/source/config/viewoptions.cxx b/unotools/source/config/viewoptions.cxx index 2b4ffbc3add1..688e1ec0d1ec 100644 --- a/unotools/source/config/viewoptions.cxx +++ b/unotools/source/config/viewoptions.cxx @@ -335,7 +335,7 @@ SvtViewOptionsBase_Impl::SvtViewOptionsBase_Impl( const ::rtl::OUString& sList ) { m_xRoot = css::uno::Reference< css::container::XNameAccess >( ::comphelper::ConfigurationHelper::openConfig( - ::comphelper::getProcessServiceFactory(), + ::comphelper::getProcessComponentContext(), PACKAGE_VIEWS, ::comphelper::ConfigurationHelper::E_STANDARD), css::uno::UNO_QUERY); |