diff options
Diffstat (limited to 'binfilter')
-rw-r--r-- | binfilter/bf_svtools/source/config/svt_pathoptions.cxx | 2 | ||||
-rw-r--r-- | binfilter/bf_svtools/source/config/svt_useroptions.cxx | 2 | ||||
-rw-r--r-- | binfilter/bf_xmloff/source/meta/xmloff_xmlmetae.cxx | 29 |
3 files changed, 15 insertions, 18 deletions
diff --git a/binfilter/bf_svtools/source/config/svt_pathoptions.cxx b/binfilter/bf_svtools/source/config/svt_pathoptions.cxx index 29b96f633..1e01376bc 100644 --- a/binfilter/bf_svtools/source/config/svt_pathoptions.cxx +++ b/binfilter/bf_svtools/source/config/svt_pathoptions.cxx @@ -522,7 +522,7 @@ SvtPathOptions_Impl::SvtPathOptions_Impl() : } // Set language type! - Any aLocale = ConfigManager::GetConfigManager()->GetDirectConfigProperty( ConfigManager::LOCALE ); + Any aLocale = ConfigManager::GetConfigManager().GetDirectConfigProperty( ConfigManager::LOCALE ); OUString aLocaleStr; if ( aLocale >>= aLocaleStr ) { diff --git a/binfilter/bf_svtools/source/config/svt_useroptions.cxx b/binfilter/bf_svtools/source/config/svt_useroptions.cxx index 5cdf7ff87..ed67f5326 100644 --- a/binfilter/bf_svtools/source/config/svt_useroptions.cxx +++ b/binfilter/bf_svtools/source/config/svt_useroptions.cxx @@ -215,7 +215,7 @@ SvtUserOptions_Impl::SvtUserOptions_Impl() : InitUserPropertyNames(); EnableNotification( PropertyNames::get() ); Load(); - Any aAny = ConfigManager::GetConfigManager()->GetDirectConfigProperty( ConfigManager::LOCALE ); + Any aAny = ConfigManager::GetConfigManager().GetDirectConfigProperty( ConfigManager::LOCALE ); OUString aLocale; if ( aAny >>= aLocale ) m_aLocale = String( aLocale ); diff --git a/binfilter/bf_xmloff/source/meta/xmloff_xmlmetae.cxx b/binfilter/bf_xmloff/source/meta/xmloff_xmlmetae.cxx index 00d4d7495..280f727a0 100644 --- a/binfilter/bf_xmloff/source/meta/xmloff_xmlmetae.cxx +++ b/binfilter/bf_xmloff/source/meta/xmloff_xmlmetae.cxx @@ -221,22 +221,19 @@ rtl::OUString lcl_GetProductName() // get the correct product name from the configuration ::rtl::OUStringBuffer aName; - utl::ConfigManager* pMgr = utl::ConfigManager::GetConfigManager(); - if (pMgr) - { - ::rtl::OUString aValue; - uno::Any aAny = pMgr->GetDirectConfigProperty(utl::ConfigManager::PRODUCTNAME); - if ( (aAny >>= aValue) && aValue.getLength() ) - aName.append( aValue ).append( (sal_Unicode)' ' ); - - aAny = pMgr->GetDirectConfigProperty(utl::ConfigManager::PRODUCTVERSION); - if ( (aAny >>= aValue) && aValue.getLength() ) - aName.append( aValue ).append( (sal_Unicode)' ' ); - - aAny = pMgr->GetDirectConfigProperty(utl::ConfigManager::PRODUCTEXTENSION); - if ( (aAny >>= aValue) && aValue.getLength() ) - aName.append( aValue ).append( (sal_Unicode)' ' ); - } + utl::ConfigManager& rMgr = utl::ConfigManager::GetConfigManager(); + ::rtl::OUString aValue; + uno::Any aAny = rMgr.GetDirectConfigProperty(utl::ConfigManager::PRODUCTNAME); + if ( (aAny >>= aValue) && aValue.getLength() ) + aName.append( aValue ).append( (sal_Unicode)' ' ); + + aAny = rMgr.GetDirectConfigProperty(utl::ConfigManager::PRODUCTVERSION); + if ( (aAny >>= aValue) && aValue.getLength() ) + aName.append( aValue ).append( (sal_Unicode)' ' ); + + aAny = rMgr.GetDirectConfigProperty(utl::ConfigManager::PRODUCTEXTENSION); + if ( (aAny >>= aValue) && aValue.getLength() ) + aName.append( aValue ).append( (sal_Unicode)' ' ); aName.append( (sal_Unicode)'(' ); aName.appendAscii( TOOLS_INETDEF_OS ); aName.append( (sal_Unicode)')' ); |