diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-19 17:06:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-20 10:07:32 +0200 |
commit | 52bbd9cc00b5a1e15e4f96b5c5fa5e75855692c1 (patch) | |
tree | 72d0d1d16806f1c785a4f79ea2c0cdfe54bb8101 /framework/source/uielement/langselectionstatusbarcontroller.cxx | |
parent | 3af99e4d59d89c343965a928681a30f36b1007d2 (diff) |
remove unnecessary RTL_CONSTASCII_STRINGPARAM in appendAscii calls
Convert code like:
aStrBuf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "ln(x)" ));
to:
aStrBuf.append( "ln(x)" );
which compiles down to the same code.
Change-Id: I24c7cb45ceb32fd7cd6ec7ed203c2a5d746f1c5c
Diffstat (limited to 'framework/source/uielement/langselectionstatusbarcontroller.cxx')
-rw-r--r-- | framework/source/uielement/langselectionstatusbarcontroller.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/framework/source/uielement/langselectionstatusbarcontroller.cxx b/framework/source/uielement/langselectionstatusbarcontroller.cxx index 095cca7b095f..f8f3a025f4d8 100644 --- a/framework/source/uielement/langselectionstatusbarcontroller.cxx +++ b/framework/source/uielement/langselectionstatusbarcontroller.cxx @@ -193,43 +193,43 @@ throw (::com::sun::star::uno::RuntimeException) if (MID_LANG_SEL_1 <= nId && nId <= MID_LANG_SEL_9) { - aBuff.appendAscii( RTL_CONSTASCII_STRINGPARAM( (".uno:LanguageStatus?Language:string=Current_") )); + aBuff.append( ".uno:LanguageStatus?Language:string=Current_" ); aBuff.append( aSelectedLang ); } else if (nId == MID_LANG_SEL_NONE) { //set None as current language for selection - aBuff.appendAscii( RTL_CONSTASCII_STRINGPARAM( (".uno:LanguageStatus?Language:string=Current_LANGUAGE_NONE") )); + aBuff.append( ".uno:LanguageStatus?Language:string=Current_LANGUAGE_NONE" ); } else if (nId == MID_LANG_SEL_RESET) { // reset language attributes for selection - aBuff.appendAscii( RTL_CONSTASCII_STRINGPARAM( (".uno:LanguageStatus?Language:string=Current_RESET_LANGUAGES") )); + aBuff.append( ".uno:LanguageStatus?Language:string=Current_RESET_LANGUAGES" ); } else if (nId == MID_LANG_SEL_MORE) { //open the dialog "format/character" for current selection - aBuff.appendAscii( RTL_CONSTASCII_STRINGPARAM( (".uno:FontDialog?Language:string=*") )); + aBuff.append( ".uno:FontDialog?Language:string=*" ); } else if (MID_LANG_PARA_1 <= nId && nId <= MID_LANG_PARA_9) { - aBuff.appendAscii( RTL_CONSTASCII_STRINGPARAM( (".uno:LanguageStatus?Language:string=Paragraph_") )); + aBuff.append( ".uno:LanguageStatus?Language:string=Paragraph_" ); aBuff.append( aSelectedLang ); } else if (nId == MID_LANG_PARA_NONE) { //set None as language for current paragraph - aBuff.appendAscii( RTL_CONSTASCII_STRINGPARAM( (".uno:LanguageStatus?Language:string=Paragraph_LANGUAGE_NONE") )); + aBuff.append( ".uno:LanguageStatus?Language:string=Paragraph_LANGUAGE_NONE" ); } else if (nId == MID_LANG_PARA_RESET) { // reset language attributes for paragraph - aBuff.appendAscii( RTL_CONSTASCII_STRINGPARAM( (".uno:LanguageStatus?Language:string=Paragraph_RESET_LANGUAGES") )); + aBuff.append( ".uno:LanguageStatus?Language:string=Paragraph_RESET_LANGUAGES" ); } else if (nId == MID_LANG_PARA_MORE) { //open the dialog "format/character" for current paragraph - aBuff.appendAscii( RTL_CONSTASCII_STRINGPARAM( (".uno:FontDialogForParagraph") )); + aBuff.append( ".uno:FontDialogForParagraph" ); } const Sequence< beans::PropertyValue > aDummyArgs; |