summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-03-27 14:52:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-04-03 09:26:35 +0200
commit8cfa7f4dc00f3dd37e57917ef25c806b0e9e6e73 (patch)
tree35408cf40d7bf3f93ff7405695f48796abc6089b /sw
parent93f1c3665fcdc31c36078f179ac37fd69d3ebb00 (diff)
add more append methods to *StringBuffer
which performs the append without needing the creation of a temporary *String Change-Id: If9ad3222275f26659db2e7df8d34f068977c4d17 Reviewed-on: https://gerrit.libreoffice.org/69826 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ascii/ascatr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ascii/ascatr.cxx b/sw/source/filter/ascii/ascatr.cxx
index ddcc22637923..91507a698928 100644
--- a/sw/source/filter/ascii/ascatr.cxx
+++ b/sw/source/filter/ascii/ascatr.cxx
@@ -312,14 +312,14 @@ static Writer& OutASC_SwTextNode( Writer& rWrt, SwContentNode& rNode )
{
if (nNextAttr <= curRedline.first)
{
- buf.append(aStr.copy(nStrPos, nNextAttr - nStrPos));
+ buf.append(aStr, nStrPos, nNextAttr - nStrPos);
break;
}
else if (nStrPos < curRedline.second)
{
if (nStrPos < curRedline.first)
{
- buf.append(aStr.copy(nStrPos, curRedline.first - nStrPos));
+ buf.append(aStr, nStrPos, curRedline.first - nStrPos);
}
if (curRedline.second <= nNextAttr)
{