diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-11-11 22:48:37 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-11-11 22:49:21 +0100 |
commit | c1758889cbd5e8e4afb1044425c908715eb3e1cd (patch) | |
tree | ff58b017da12c009f0b17c067787d1dbbd52eb7a /padmin/source/pamain.cxx | |
parent | WaE: OptValue::maValue may be used uninitialized (diff) | |
download | core-c1758889cbd5e8e4afb1044425c908715eb3e1cd.tar.gz core-c1758889cbd5e8e4afb1044425c908715eb3e1cd.zip |
Heavily simplified utl::ConfigManager.
Diffstat (limited to 'padmin/source/pamain.cxx')
-rw-r--r-- | padmin/source/pamain.cxx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/padmin/source/pamain.cxx b/padmin/source/pamain.cxx index 63c46fd3160b..71ee0e77e09e 100644 --- a/padmin/source/pamain.cxx +++ b/padmin/source/pamain.cxx @@ -71,15 +71,8 @@ MyApp aMyApp; void MyApp::ReadStringHook( String& rStr ) { - static String maProduct; - if( ! maProduct.Len() ) - { - Any aRet = utl::ConfigManager::GetDirectConfigProperty( utl::ConfigManager::PRODUCTNAME ); - OUString aProd; - aRet >>= aProd; - maProduct = String( aProd ); - } - rStr.SearchAndReplaceAllAscii( "%PRODUCTNAME", maProduct ); + rStr.SearchAndReplaceAllAscii( + "%PRODUCTNAME", utl::ConfigManager::getProductName() ); }; |