summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorRicardo Montania <ricardo@linuxafundo.com.br>2013-05-13 16:14:52 -0300
committerLuboš Luňák <l.lunak@suse.cz>2013-05-15 15:58:17 +0200
commit8a9448aabcee0171b0dc3b0401600de09455fb10 (patch)
tree200f609afeab42dd1281833607ae5f4fedf9dcee /formula
parent8d08ba5e7530580afd61930bfc00ae513962b754 (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 'formula')
-rw-r--r--formula/source/ui/dlg/formula.cxx18
1 files changed, 7 insertions, 11 deletions
diff --git a/formula/source/ui/dlg/formula.cxx b/formula/source/ui/dlg/formula.cxx
index 51bb4e49c336..4891bd157e91 100644
--- a/formula/source/ui/dlg/formula.cxx
+++ b/formula/source/ui/dlg/formula.cxx
@@ -823,11 +823,10 @@ void FormulaDlg_Impl::FillControls(sal_Bool &rbNext, sal_Bool &rbPrev)
// 2. Page or Edit: show selected function
xub_StrLen nFStart = pData->GetFStart();
- String aFormula = m_pHelper->getCurrentFormula();
+ OUString aFormula = OUString(m_pHelper->getCurrentFormula()) + " )";
xub_StrLen nNextFStart = nFStart;
xub_StrLen nNextFEnd = 0;
- aFormula.AppendAscii(RTL_CONSTASCII_STRINGPARAM( " )" ));
DeleteArgs();
const IFunctionDescription* pOldFuncDesc = pFuncDesc;
sal_Bool bTestFlag = sal_False;
@@ -1035,8 +1034,7 @@ IMPL_LINK_NOARG(FormulaDlg_Impl, DblClkHdl)
const IFunctionDescription* pDesc = pFuncPage->GetFuncDesc(nFunc);
m_pHelper->insertEntryToLRUList(pDesc);
- String aFuncName = pFuncPage->GetSelFunctionName();
- aFuncName.AppendAscii(RTL_CONSTASCII_STRINGPARAM( "()" ));
+ OUString aFuncName = OUString( pFuncPage->GetSelFunctionName() ) + "()";
m_pHelper->setCurrentFormula(aFuncName);
pMEdit->ReplaceSelected(aFuncName);
@@ -1428,16 +1426,14 @@ void FormulaDlg_Impl::RefInputStartAfter( RefEdit* /*pEdit*/, RefButton* /*pButt
if( pTheRefEdit )
{
- String aStr = aTitle2;
- aStr += ' ';
- aStr += aFtEditName.GetText();
- aStr.AppendAscii( RTL_CONSTASCII_STRINGPARAM( "( " ) );
+ OUString aStr = OUString(aTitle2) + " " + aFtEditName.GetText() + "( ";
+
if( pParaWin->GetActiveLine() > 0 )
- aStr.AppendAscii( RTL_CONSTASCII_STRINGPARAM( "...; " ) );
+ aStr += "...; ";
aStr += pParaWin->GetActiveArgName();
if( pParaWin->GetActiveLine() + 1 < nArgs )
- aStr.AppendAscii(RTL_CONSTASCII_STRINGPARAM( "; ..." ));
- aStr.AppendAscii( RTL_CONSTASCII_STRINGPARAM( " )" ) );
+ aStr += "; ...";
+ aStr += " )";
m_pParent->SetText( MnemonicGenerator::EraseAllMnemonicChars( aStr ) );
}