tdf#57950: Replace chained O(U)StringBuffer::append() with operator+

Change-Id: Iae8e50864dbd90ff49a4fcc31a06b2158eab4afc
Reviewed-on: https://gerrit.libreoffice.org/14998
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
Austin Chen
2015-03-25 02:43:57 -07:00
committed by Noel Grandin
parent 4ee55eed6a
commit 0fb66458c0
2 changed files with 2 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ static OUString lclGenerateApiString( const OUString& rString )
sal_Int32 nQuotePos = aRetString.getLength();
while( (nQuotePos = aRetString.lastIndexOf( '"', nQuotePos )) >= 0 )
aRetString = aRetString.replaceAt( nQuotePos, 1, "\"\"" );
return OUStringBuffer().append( '"' ).append( aRetString ).append( '"' ).makeStringAndClear();
return "\"" + aRetString + "\"";
}
static OUString lclGenerateApiArray( const Matrix< Any >& rMatrix )

View File

@@ -1624,7 +1624,7 @@ OUString FormulaProcessorBase::generateApiString( const OUString& rString )
sal_Int32 nQuotePos = aRetString.getLength();
while( (nQuotePos = aRetString.lastIndexOf( '"', nQuotePos )) >= 0 )
aRetString = aRetString.replaceAt( nQuotePos, 1, OUString( "\"\"" ) );
return OUStringBuffer().append( '"' ).append( aRetString ).append( '"' ).makeStringAndClear();
return "\"" + aRetString + "\"";
}
OUString FormulaProcessorBase::generateApiArray( const Matrix< Any >& rMatrix )