summaryrefslogtreecommitdiff
path: root/unotools/source/config/confignode.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-03-05 15:44:41 +0200
committerNoel Grandin <noel@peralex.com>2013-03-07 08:23:42 +0200
commitf084fc5c80ad8b57f7a22a2a5fc506f90e0e24b8 (patch)
tree360b739c5e1065a48e5a75016a7b960a63b68d0f /unotools/source/config/confignode.cxx
parente721452988b54eb2e02c3885fde288be70bcf1f1 (diff)
fdo#46808, simplify OConfigurationTreeRoot constructor
.. doesn't need to take comphelper::ComponentContext as a param anymore, can now use Reference<XComponentContext> Change-Id: Ie5fbe0c9e8459cc612426ffa9474f955b28593e3
Diffstat (limited to 'unotools/source/config/confignode.cxx')
-rw-r--r--unotools/source/config/confignode.cxx8
1 files changed, 4 insertions, 4 deletions
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()
{