summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog/taskpane.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-03-05 15:08:38 +0200
committerNoel Grandin <noel@peralex.com>2013-03-07 08:23:42 +0200
commite721452988b54eb2e02c3885fde288be70bcf1f1 (patch)
tree88d250835c0ca08fcfc4e2ad93f3f62766aa95ee /sfx2/source/dialog/taskpane.cxx
parente70c068ba413564067f17107b0773910ced760d1 (diff)
fdo#46808, small cleanups
Change-Id: I8d34bfca5009a4a44444b19a39c6f8338614e4c4
Diffstat (limited to 'sfx2/source/dialog/taskpane.cxx')
-rw-r--r--sfx2/source/dialog/taskpane.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/sfx2/source/dialog/taskpane.cxx b/sfx2/source/dialog/taskpane.cxx
index cdc6f22f7bf3..4f44b6910ba3 100644
--- a/sfx2/source/dialog/taskpane.cxx
+++ b/sfx2/source/dialog/taskpane.cxx
@@ -99,11 +99,11 @@ namespace sfx2
::utl::OConfigurationTreeRoot lcl_getModuleUIElementStatesConfig( const ::rtl::OUString& i_rModuleIdentifier,
const ::rtl::OUString& i_rResourceURL = ::rtl::OUString() )
{
- const ::comphelper::ComponentContext aContext( ::comphelper::getProcessServiceFactory() );
+ const Reference<XComponentContext> xContext( ::comphelper::getProcessComponentContext() );
::rtl::OUStringBuffer aPathComposer;
try
{
- const Reference< XModuleManager2 > xModuleAccess( ModuleManager::create(aContext.getUNOContext()) );
+ const Reference< XModuleManager2 > xModuleAccess( ModuleManager::create(xContext) );
const ::comphelper::NamedValueCollection aModuleProps( xModuleAccess->getByName( i_rModuleIdentifier ) );
const ::rtl::OUString sWindowStateRef( aModuleProps.getOrDefault( "ooSetupFactoryWindowStateConfigRef", ::rtl::OUString() ) );
@@ -121,7 +121,7 @@ namespace sfx2
{
DBG_UNHANDLED_EXCEPTION();
}
- return ::utl::OConfigurationTreeRoot( aContext, aPathComposer.makeStringAndClear(), false );
+ return ::utl::OConfigurationTreeRoot( xContext, aPathComposer.makeStringAndClear(), false );
}
//--------------------------------------------------------------------------------------------------------------
@@ -382,8 +382,7 @@ namespace sfx2
//------------------------------------------------------------------------------------------------------------------
void CustomToolPanel::impl_updatePanelConfig( const bool i_bVisible ) const
{
- ::comphelper::ComponentContext aContext( ::comphelper::getProcessServiceFactory() );
- ::utl::OConfigurationTreeRoot aConfig( aContext, m_sPanelConfigPath, true );
+ ::utl::OConfigurationTreeRoot aConfig( ::comphelper::getProcessComponentContext(), m_sPanelConfigPath, true );
aConfig.setNodeValue( "Visible", makeAny( i_bVisible ) );
aConfig.commit();