summaryrefslogtreecommitdiff
path: root/sc
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 /sc
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 'sc')
-rw-r--r--sc/source/filter/dif/difimp.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/dif/difimp.cxx b/sc/source/filter/dif/difimp.cxx
index 4040f4adb67e..09121ed7c5fc 100644
--- a/sc/source/filter/dif/difimp.cxx
+++ b/sc/source/filter/dif/difimp.cxx
@@ -357,7 +357,7 @@ TOPIC DifParser::GetNextTopic()
OSL_ENSURE( aLine.getLength() >= 2,
"+GetNextTopic(): <String> is too short!" );
if( aLine.getLength() > 2 )
- m_aData.append(aLine.copy(1, aLine.getLength() - 2));
+ m_aData.append(aLine, 1, aLine.getLength() - 2);
else
m_aData.truncate();
eS = S_END;
@@ -556,7 +556,7 @@ DATASET DifParser::GetNextDataset()
}
else if( pLine[nLineLength - 1] == '"' )
{
- m_aData.append(aLine.copy(0, nLineLength -1));
+ m_aData.append(aLine, 0, nLineLength -1);
lcl_DeEscapeQuotesDif(m_aData);
eRet = D_STRING;
}