diff options
author | Ricardo Montania <ricardo@linuxafundo.com.br> | 2013-05-13 16:14:52 -0300 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-05-15 15:58:17 +0200 |
commit | 8a9448aabcee0171b0dc3b0401600de09455fb10 (patch) | |
tree | 200f609afeab42dd1281833607ae5f4fedf9dcee /framework/source | |
parent | 8d08ba5e7530580afd61930bfc00ae513962b754 (diff) |
String.AppendAscii Drop
Signed-off-by: Luboš Luňák <l.lunak@suse.cz>
https://gerrit.libreoffice.org/#/c/3892/
Change-Id: I12175a81f0a74546b5e00633176f204b9a3fb35c
Diffstat (limited to 'framework/source')
-rw-r--r-- | framework/source/uielement/langselectionmenucontroller.cxx | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/framework/source/uielement/langselectionmenucontroller.cxx b/framework/source/uielement/langselectionmenucontroller.cxx index 28a67b95a603..5bcbbf3326af 100644 --- a/framework/source/uielement/langselectionmenucontroller.cxx +++ b/framework/source/uielement/langselectionmenucontroller.cxx @@ -207,23 +207,23 @@ void LanguageSelectionMenuController::fillPopupMenu( Reference< css::awt::XPopup if ( pVCLPopupMenu ) pPopupMenu = (PopupMenu *)pVCLPopupMenu->GetMenu(); - String aCmd; - String aCmd_Dialog; - String aCmd_Language; + OUString aCmd; + OUString aCmd_Dialog; + OUString aCmd_Language; if( eMode == MODE_SetLanguageSelectionMenu ) { - aCmd_Dialog.AppendAscii(".uno:FontDialog?Language:string=*"); - aCmd_Language.AppendAscii(".uno:LanguageStatus?Language:string=Current_"); + aCmd_Dialog += ".uno:FontDialog?Language:string=*"; + aCmd_Language += ".uno:LanguageStatus?Language:string=Current_"; } else if ( eMode == MODE_SetLanguageParagraphMenu ) { - aCmd_Dialog.AppendAscii(".uno:FontDialogForParagraph"); - aCmd_Language.AppendAscii(".uno:LanguageStatus?Language:string=Paragraph_"); + aCmd_Dialog += ".uno:FontDialogForParagraph"; + aCmd_Language += ".uno:LanguageStatus?Language:string=Paragraph_"; } else if ( eMode == MODE_SetLanguageAllTextMenu ) { - aCmd_Dialog.AppendAscii(".uno:LanguageStatus?Language:string=*"); - aCmd_Language.AppendAscii(".uno:LanguageStatus?Language:string=Default_"); + aCmd_Dialog += ".uno:LanguageStatus?Language:string=*"; + aCmd_Language += ".uno:LanguageStatus?Language:string=Default_"; } SvtLanguageTable aLanguageTable; @@ -264,15 +264,13 @@ void LanguageSelectionMenuController::fillPopupMenu( Reference< css::awt::XPopup // entry for LANGUAGE_NONE ++nItemId; pPopupMenu->InsertItem( nItemId, String(FwlResId( STR_LANGSTATUS_NONE )) ); - aCmd=aCmd_Language; - aCmd.AppendAscii("LANGUAGE_NONE"); + aCmd = aCmd_Language + "LANGUAGE_NONE"; pPopupMenu->SetItemCommand( nItemId, aCmd ); // entry for 'Reset to default language' ++nItemId; pPopupMenu->InsertItem( nItemId, String(FwlResId( STR_RESET_TO_DEFAULT_LANGUAGE )) ); - aCmd=aCmd_Language; - aCmd.AppendAscii("RESET_LANGUAGES"); + aCmd = aCmd_Language + "RESET_LANGUAGES"; pPopupMenu->SetItemCommand( nItemId, aCmd ); // entry for opening the Format/Character dialog |