diff options
-rw-r--r-- | unotools/inc/unotools/confignode.hxx | 2 | ||||
-rw-r--r-- | unotools/source/config/confignode.cxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/unotools/inc/unotools/confignode.hxx b/unotools/inc/unotools/confignode.hxx index 184250cb6200..08e86429ede4 100644 --- a/unotools/inc/unotools/confignode.hxx +++ b/unotools/inc/unotools/confignode.hxx @@ -249,7 +249,7 @@ namespace utl /** creates a configuration tree for the given path in the given mode */ OConfigurationTreeRoot( - const ::comphelper::ComponentContext& i_rContext, + const css::uno::Reference<css::uno::XComponentContext> & i_rContext, const ::rtl::OUString& i_rNodePath, const bool i_bUpdatable ); diff --git a/unotools/source/config/confignode.cxx b/unotools/source/config/confignode.cxx index 08cc4e16fdbe..9692bb083baa 100644 --- a/unotools/source/config/confignode.cxx +++ b/unotools/source/config/confignode.cxx @@ -482,11 +482,11 @@ namespace utl namespace { //-------------------------------------------------------------------- - Reference< XMultiServiceFactory > lcl_getConfigProvider( const ::comphelper::ComponentContext& i_rContext ) + Reference< XMultiServiceFactory > lcl_getConfigProvider( const Reference<XComponentContext> & i_rContext ) { try { - Reference< XMultiServiceFactory > xProvider = theDefaultProvider::get( i_rContext.getUNOContext() ); + Reference< XMultiServiceFactory > xProvider = theDefaultProvider::get( i_rContext ); return xProvider; } catch ( const Exception& ) @@ -534,8 +534,8 @@ namespace utl } //------------------------------------------------------------------------ - OConfigurationTreeRoot::OConfigurationTreeRoot( const ::comphelper::ComponentContext& i_rContext, const ::rtl::OUString& i_rNodePath, const bool i_bUpdatable ) - :OConfigurationNode( lcl_createConfigurationRoot( lcl_getConfigProvider( i_rContext.getLegacyServiceFactory() ), + OConfigurationTreeRoot::OConfigurationTreeRoot( const Reference<XComponentContext> & i_rContext, const ::rtl::OUString& i_rNodePath, const bool i_bUpdatable ) + :OConfigurationNode( lcl_createConfigurationRoot( lcl_getConfigProvider( i_rContext ), i_rNodePath, i_bUpdatable, -1, false ).get() ) ,m_xCommitter() { |