Remove dead rtl::Static instances

...effectively dead ever since c1758889cbd5e8e4afb1044425c908715eb3e1cd "Heavily
simplified utl::ConfigManager" changed the references into them (rBrandName
etc.) into non-references (for reasons lost).

Change-Id: Ib77fb458ade9d9b53ec5c1cc1e38785a47c42c42
This commit is contained in:
Stephan Bergmann 2017-05-16 15:09:14 +02:00
parent c7e31f4921
commit a40e0d00ba

View File

@ -456,18 +456,8 @@ CommandLineArgs& Desktop::GetCommandLineArgs()
namespace
{
struct BrandName
: public rtl::Static< OUString, BrandName > {};
struct Version
: public rtl::Static< OUString, Version > {};
struct AboutBoxVersion
: public rtl::Static< OUString, AboutBoxVersion > {};
struct AboutBoxVersionSuffix
: public rtl::Static< OUString, AboutBoxVersionSuffix > {};
struct OOOVendor
: public rtl::Static< OUString, OOOVendor > {};
struct Extension
: public rtl::Static< OUString, Extension > {};
}
OUString ReplaceStringHookProc( const OUString& rStr )
@ -478,23 +468,11 @@ OUString ReplaceStringHookProc( const OUString& rStr )
static std::once_flag aInitOnce;
std::call_once(aInitOnce, []
{
sBrandName = BrandName::get();
sVersion = Version::get();
sAboutBoxVersion = AboutBoxVersion::get();
sAboutBoxVersionSuffix = AboutBoxVersionSuffix::get();
sExtension = Extension::get();
if ( sBrandName.isEmpty() )
{
sBrandName = utl::ConfigManager::getProductName();
sVersion = utl::ConfigManager::getProductVersion();
sAboutBoxVersion = utl::ConfigManager::getAboutBoxProductVersion();
sAboutBoxVersionSuffix = utl::ConfigManager::getAboutBoxProductVersionSuffix();
if (sExtension.isEmpty())
{
sExtension = utl::ConfigManager::getProductExtension();
}
}
sBrandName = utl::ConfigManager::getProductName();
sVersion = utl::ConfigManager::getProductVersion();
sAboutBoxVersion = utl::ConfigManager::getAboutBoxProductVersion();
sAboutBoxVersionSuffix = utl::ConfigManager::getAboutBoxProductVersionSuffix();
sExtension = utl::ConfigManager::getProductExtension();
} );
OUString sRet(rStr);