summaryrefslogtreecommitdiff
path: root/lotuswordpro
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 /lotuswordpro
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 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwptblformula.cxx42
1 files changed, 13 insertions, 29 deletions
diff --git a/lotuswordpro/source/filter/lwptblformula.cxx b/lotuswordpro/source/filter/lwptblformula.cxx
index a9988bc27249..0b69d05ac7e9 100644
--- a/lotuswordpro/source/filter/lwptblformula.cxx
+++ b/lotuswordpro/source/filter/lwptblformula.cxx
@@ -485,12 +485,7 @@ LwpFormulaCellAddr::LwpFormulaCellAddr(sal_Int16 aCol, sal_Int16 aRow)
*/
OUString LwpFormulaCellAddr::ToString(LwpTableLayout* pCellsMap)
{
- String aCellAddr;
- aCellAddr.AppendAscii("<");//&lt;
-
- aCellAddr += LwpFormulaTools::GetCellAddr(m_aRow,m_aCol,pCellsMap);
-
- aCellAddr.AppendAscii(">");//&gt;
+ OUString aCellAddr = "<" + LwpFormulaTools::GetCellAddr(m_aRow,m_aCol,pCellsMap) + ">";
return aCellAddr;
}
@@ -521,14 +516,9 @@ LwpFormulaCellRangeAddr::LwpFormulaCellRangeAddr(sal_Int16 aStartCol,
*/
OUString LwpFormulaCellRangeAddr::ToString(LwpTableLayout* pCellsMap)
{
- String aCellAddr;
- aCellAddr.AppendAscii("<");//&lt;
-
- aCellAddr += LwpFormulaTools::GetCellAddr(m_aStartRow,m_aStartCol,pCellsMap);
- aCellAddr.AppendAscii(":");
- aCellAddr += LwpFormulaTools::GetCellAddr(m_aEndRow,m_aEndCol,pCellsMap);
-
- aCellAddr.AppendAscii(">");//&gt;
+ OUString aCellAddr = "<"
+ + LwpFormulaTools::GetCellAddr(m_aStartRow,m_aStartCol,pCellsMap) + ":"
+ + LwpFormulaTools::GetCellAddr(m_aEndRow,m_aEndCol,pCellsMap) + ">";
return aCellAddr;
}
@@ -602,24 +592,21 @@ String LwpFormulaFunc::ToArgString(LwpTableLayout* pCellsMap)
*/
OUString LwpFormulaFunc::ToString(LwpTableLayout* pCellsMap)
{
- String aFormula;
+ OUString aFormula;
- String aFuncName = LwpFormulaTools::GetName(m_nTokenType);
- aFormula += aFuncName;
- aFormula.AppendAscii(" ");//Append a blank space
+ OUString aFuncName = LwpFormulaTools::GetName(m_nTokenType) + " ";
//Append args
vector<LwpFormulaArg*>::iterator aItr;
for (aItr=m_aArgs.begin();aItr!=m_aArgs.end();++aItr)
{
- aFormula.Append( (*aItr)->ToArgString(pCellsMap) );
- aFormula.AppendAscii("|");//separator
+ aFormula += (*aItr)->ToArgString(pCellsMap) + "|"; //separator
}
//erase the last "|"
if (!m_aArgs.empty())
{
- aFormula.Erase(aFormula.Len()-1,1);
+ aFormula.replaceAt(aFormula.getLength()-1,1,"");
}
else
{
@@ -638,22 +625,19 @@ OUString LwpFormulaFunc::ToString(LwpTableLayout* pCellsMap)
*/
OUString LwpFormulaOp::ToString(LwpTableLayout* pCellsMap)
{
- String aFormula;
+ OUString aFormula;
if (2==m_aArgs.size())
{
vector<LwpFormulaArg*>::iterator aItr = m_aArgs.end();
--aItr;
- aFormula.Append( (*aItr)->ToArgString(pCellsMap) );
- aFormula.AppendAscii(" ");
+ aFormula += (*aItr)->ToArgString(pCellsMap) + " ";
+ OUString aFuncName = LwpFormulaTools::GetName(m_nTokenType);
- String aFuncName = LwpFormulaTools::GetName(m_nTokenType);
- aFormula.Append(aFuncName);
-
- aFormula.AppendAscii(" ");
+ aFormula += aFuncName + " ";
--aItr;
- aFormula.Append( (*aItr)->ToArgString(pCellsMap) );
+ aFormula += (*aItr)->ToArgString(pCellsMap);
}
else
{