sw/source/filter/ww8/rtfattributeoutput.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
New commits: commit 5211aeb3de2e98f3d59d53d5ddc16f09a956e410 Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Sat Mar 19 20:53:50 2022 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sun Mar 20 13:22:39 2022 +0100 simplify some calls to RtfStringBuffer::append Change-Id: I68ad11d19fb0c0a20a336cb0888a1229ce12b995 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131851 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx index 56c126762fdf..26542763837e 100644 --- a/sw/source/filter/ww8/rtfattributeoutput.cxx +++ b/sw/source/filter/ww8/rtfattributeoutput.cxx @@ -428,7 +428,7 @@ void RtfAttributeOutput::StartRunProperties() void RtfAttributeOutput::EndRunProperties(const SwRedlineData* /*pRedlineData*/) { const OString aProperties = MoveCharacterProperties(true); - m_aRun->append(aProperties.getStr()); + m_aRun->append(aProperties); } OString RtfAttributeOutput::MoveCharacterProperties(bool aAutoWriteRtlLtr) @@ -642,9 +642,9 @@ void RtfAttributeOutput::ParagraphStyle(sal_uInt16 nStyle) aStyle.append(OOO_STRING_SVTOOLS_RTF_S); aStyle.append(static_cast<sal_Int32>(nStyle)); if (pStyle) - aStyle.append(pStyle->getStr()); + aStyle.append(*pStyle); if (!m_bBufferSectionHeaders) - m_rExport.Strm().WriteOString(aStyle.makeStringAndClear()); + m_rExport.Strm().WriteOString(aStyle); else m_aSectionHeaders.append(aStyle); } @@ -1748,7 +1748,7 @@ void RtfAttributeOutput::WriteAnnotationMarks_Impl(std::vector<OUString>& rStart const sal_Int32 nId = m_nNextAnnotationMarkId++; m_rOpenedAnnotationMarksIds[rName] = nId; m_aRun->append("{" OOO_STRING_SVTOOLS_RTF_IGNORE OOO_STRING_SVTOOLS_RTF_ATRFSTART " "); - m_aRun->append(OString::number(nId).getStr()); + m_aRun->append(nId); m_aRun->append('}'); } rStarts.clear(); @@ -1763,7 +1763,7 @@ void RtfAttributeOutput::WriteAnnotationMarks_Impl(std::vector<OUString>& rStart { const sal_Int32 nId = it->second; m_aRun->append("{" OOO_STRING_SVTOOLS_RTF_IGNORE OOO_STRING_SVTOOLS_RTF_ATRFEND " "); - m_aRun->append(OString::number(nId).getStr()); + m_aRun->append(nId); m_aRun->append('}'); m_rOpenedAnnotationMarksIds.erase(rName);