diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-07-13 20:12:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-07-14 14:04:03 +0100 |
commit | 82937ce3d7bc2382c4da22365d1245c9f7db178c (patch) | |
tree | dbae8b3a02a1b0f21326ba2d5da41cf946d48962 /framework | |
parent | Use CL_MAP_WRITE_INVALIDATE_REGION only if defined (in OpenCL 1.2) (diff) | |
download | core-82937ce3d7bc2382c4da22365d1245c9f7db178c.tar.gz core-82937ce3d7bc2382c4da22365d1245c9f7db178c.zip |
String::SearchAndReplaceAllAscii -> OUString::replaceAll
Change-Id: I5091835c9f71c712f15996e5c6263fc5f21f6f96
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/uielement/uicommanddescription.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/framework/source/uielement/uicommanddescription.cxx b/framework/source/uielement/uicommanddescription.cxx index f48fb94167ca..c44b3c5b74d5 100644 --- a/framework/source/uielement/uicommanddescription.cxx +++ b/framework/source/uielement/uicommanddescription.cxx @@ -303,12 +303,10 @@ throw ( RuntimeException ) void ConfigurationAccess_UICommand::fillInfoFromResult( CmdToInfoMap& rCmdInfo, const OUString& aLabel ) { - String rStr( aLabel ); - rStr.SearchAndReplaceAllAscii( - "%PRODUCTNAME", utl::ConfigManager::getProductName() ); - rCmdInfo.aLabel = OUString( rStr ); - rStr = comphelper::string::stripEnd(rStr, '.'); // Remove "..." from string - rCmdInfo.aCommandName = OUString( MnemonicGenerator::EraseAllMnemonicChars( rStr )); + OUString aStr(aLabel.replaceAll("%PRODUCTNAME", utl::ConfigManager::getProductName())); + rCmdInfo.aLabel = aStr; + aStr = comphelper::string::stripEnd(aStr, '.'); // Remove "..." from string + rCmdInfo.aCommandName = MnemonicGenerator::EraseAllMnemonicChars(aStr); rCmdInfo.bCommandNameCreated = sal_True; } |