diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-07-21 18:50:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-22 11:13:28 +0200 |
commit | aa2067dda63852b0eb84d5c32497f5a28177bb1c (patch) | |
tree | c55e9293ba60ac588e2b9431905c5ea0d3e48895 /starmath | |
parent | 7335d912de04eaa279dc805ee0ed5be0fcac5326 (diff) |
elide some makeStringAndClear() calls
Change-Id: Iccdb04df53bc981e2240240daddf15e9e1bb5a16
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137310
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/ooxmlexport.cxx | 2 | ||||
-rw-r--r-- | starmath/source/ooxmlimport.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/starmath/source/ooxmlexport.cxx b/starmath/source/ooxmlexport.cxx index 8a94b890888d..1c349c080be3 100644 --- a/starmath/source/ooxmlexport.cxx +++ b/starmath/source/ooxmlexport.cxx @@ -168,7 +168,7 @@ void SmOoxmlExport::HandleText( const SmNode* pNode, int /*nLevel*/) } #endif } - m_pSerializer->writeEscaped(buf.makeStringAndClear()); + m_pSerializer->writeEscaped(buf); m_pSerializer->endElementNS( XML_m, XML_t ); m_pSerializer->endElementNS( XML_m, XML_r ); } diff --git a/starmath/source/ooxmlimport.cxx b/starmath/source/ooxmlimport.cxx index b096d80ba1f1..f040265ad31d 100644 --- a/starmath/source/ooxmlimport.cxx +++ b/starmath/source/ooxmlimport.cxx @@ -383,7 +383,7 @@ OUString SmOoxmlImport::handleEqArr() ret.append(" "); } while( !m_rStream.atEnd() && m_rStream.findTag( OPENING( M_TOKEN( e )))); m_rStream.ensureClosingTag( M_TOKEN( eqArr )); - return "stack {" + ret.makeStringAndClear() + "}"; + return "stack {" + ret + "}"; } OUString SmOoxmlImport::handleF() @@ -500,7 +500,7 @@ OUString SmOoxmlImport::handleM() m_rStream.ensureClosingTag( M_TOKEN( mr )); } while( !m_rStream.atEnd() && m_rStream.findTag( OPENING( M_TOKEN( mr )))); m_rStream.ensureClosingTag( M_TOKEN( m )); - return "matrix {" + allrows.makeStringAndClear() + "}"; + return "matrix {" + allrows + "}"; } OUString SmOoxmlImport::handleNary() |