From ca02d728082a86780d68ede7b9d565128dbc0434 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 18 Nov 2011 21:03:31 +0000 Subject: remove [Byte]String::EraseAllChars --- vcl/aqua/source/window/salmenu.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'vcl/aqua') 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 + #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) { -- cgit