diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-18 21:03:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-19 21:11:02 +0000 |
commit | ca02d728082a86780d68ede7b9d565128dbc0434 (patch) | |
tree | 8c0a857ad73f89d592295f99e5f72a0c96e55e57 /vcl/aqua | |
parent | e4ff699291ddab16d70aa9b11c717e34dfbe5414 (diff) |
remove [Byte]String::EraseAllChars
Diffstat (limited to 'vcl/aqua')
-rw-r--r-- | vcl/aqua/source/window/salmenu.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/vcl/aqua/source/window/salmenu.cxx b/vcl/aqua/source/window/salmenu.cxx index 509ef731ab75..368ca6ed9154 100644 --- a/vcl/aqua/source/window/salmenu.cxx +++ b/vcl/aqua/source/window/salmenu.cxx @@ -26,6 +26,8 @@ * ************************************************************************/ +#include <comphelper/string.hxx> + #include "rtl/ustrbuf.hxx" #include "vcl/cmdevt.hxx" @@ -682,10 +684,8 @@ void AquaSalMenu::SetItemText( unsigned /*i_nPos*/, SalMenuItem* i_pSalMenuItem, AquaSalMenuItem *pAquaSalMenuItem = (AquaSalMenuItem *) i_pSalMenuItem; - String aText( i_rText ); - // Delete mnemonics - aText.EraseAllChars( '~' ); + String aText( comphelper::string::remove(i_rText, '~') ); /* #i90015# until there is a correct solution strip out any appended (.*) in menubar entries @@ -933,10 +933,8 @@ AquaSalMenuItem::AquaSalMenuItem( const SalItemParams* pItemData ) : mpSubMenu( NULL ), mpMenuItem( nil ) { - String aText( pItemData->aText ); - // Delete mnemonics - aText.EraseAllChars( '~' ); + String aText( comphelper::string::remove(pItemData->aText, '~') ); if (pItemData->eType == MENUITEM_SEPARATOR) { |