diff options
Diffstat (limited to 'framework/source/fwe/helper/titlehelper.cxx')
-rw-r--r-- | framework/source/fwe/helper/titlehelper.cxx | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/framework/source/fwe/helper/titlehelper.cxx b/framework/source/fwe/helper/titlehelper.cxx index 7b39cf071a7d..2a444ddc0def 100644 --- a/framework/source/fwe/helper/titlehelper.cxx +++ b/framework/source/fwe/helper/titlehelper.cxx @@ -542,28 +542,23 @@ void TitleHelper::impl_appendComponentTitle ( ::rtl::OUStringBuffer& //***************************************************************************************************************** void TitleHelper::impl_appendProductName (::rtl::OUStringBuffer& sTitle) { - ::rtl::OUString sProductName; - ::utl::ConfigManager::GetDirectConfigProperty(::utl::ConfigManager::PRODUCTNAME) >>= sProductName; - - if (sProductName.getLength ()) + rtl::OUString name(utl::ConfigManager::getProductName()); + if (!name.isEmpty()) { - if (sTitle.getLength() > 0) - sTitle.appendAscii (" - "); - - sTitle.append (sProductName); + if (sTitle.getLength() != 0) + sTitle.appendAscii(RTL_CONSTASCII_STRINGPARAM(" - ")); + sTitle.append(name); } } //***************************************************************************************************************** void TitleHelper::impl_appendProductExtension (::rtl::OUStringBuffer& sTitle) { - ::rtl::OUString sProductExtension; - ::utl::ConfigManager::GetDirectConfigProperty(::utl::ConfigManager::PRODUCTEXTENSION) >>= sProductExtension; - - if (sProductExtension.getLength ()) + rtl::OUString ext(utl::ConfigManager::getProductExtension()); + if (!ext.isEmpty()) { - sTitle.appendAscii (" "); - sTitle.append (sProductExtension); + sTitle.append(' '); + sTitle.append(ext); } } |