Kaydet (Commit) 0fb66458 authored tarafından Austin Chen's avatar Austin Chen Kaydeden (comit) Noel Grandin

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

Change-Id: Iae8e50864dbd90ff49a4fcc31a06b2158eab4afc
Reviewed-on: https://gerrit.libreoffice.org/14998Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 4ee55eed
......@@ -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 )
......
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment