summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorAustin Chen <austinchenyw@gmail.com>2015-03-25 02:43:57 -0700
committerNoel Grandin <noelgrandin@gmail.com>2015-03-26 06:46:43 +0000
commit0fb66458c08b9c0ce59bca85e77d26fad8b59e4b (patch)
treeae651d17dbbb9cf41fb319d65d04532eb8f33021 /sc
parent4ee55eed6a34f6f061a0cd369a30afb464f9fa27 (diff)
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>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/oox/formulabase.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/oox/formulabase.cxx b/sc/source/filter/oox/formulabase.cxx
index e1237b7c6100..38f0ef234d3d 100644
--- a/sc/source/filter/oox/formulabase.cxx
+++ b/sc/source/filter/oox/formulabase.cxx
@@ -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 )