From 762dbbb4b11279cf087cc52c0dd4c3d38f3ca220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 11 Oct 2010 15:13:08 +0100 Subject: [PATCH] #i112786# make ConfigManager a well-behaved singleton --- cui/source/customize/cfgutil.cxx | 4 ++-- cui/source/options/treeopt.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx index 952de1f9275e..fd320baf5940 100644 --- a/cui/source/customize/cfgutil.cxx +++ b/cui/source/customize/cfgutil.cxx @@ -585,7 +585,7 @@ SfxConfigGroupListBox_Impl::SfxConfigGroupListBox_Impl( Any value; sal_Bool tmp = false; - value = ::utl::ConfigManager::GetConfigManager()->GetLocalProperty( + value = ::utl::ConfigManager::GetConfigManager().GetLocalProperty( ::rtl::OUString::createFromAscii( "Office.Scripting/ScriptDisplaySettings/ShowBasic" ) ); @@ -598,7 +598,7 @@ SfxConfigGroupListBox_Impl::SfxConfigGroupListBox_Impl( bShowBasic = FALSE; } - value = ::utl::ConfigManager::GetConfigManager()->GetLocalProperty( + value = ::utl::ConfigManager::GetConfigManager().GetLocalProperty( ::rtl::OUString::createFromAscii( "Office.Scripting/ScriptDisplaySettings/ShowSF" ) ); diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index f014c320fedc..21585b7c3db9 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -2702,7 +2702,7 @@ short OfaTreeOptionsDialog::Execute() } } - utl::ConfigManager::GetConfigManager()->StoreConfigItems(); + utl::ConfigManager::GetConfigManager().StoreConfigItems(); } return nRet;