diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-27 14:52:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-03 09:26:35 +0200 |
commit | 8cfa7f4dc00f3dd37e57917ef25c806b0e9e6e73 (patch) | |
tree | 35408cf40d7bf3f93ff7405695f48796abc6089b /tools | |
parent | 93f1c3665fcdc31c36078f179ac37fd69d3ebb00 (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 'tools')
-rw-r--r-- | tools/source/inet/inetmime.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/source/inet/inetmime.cxx b/tools/source/inet/inetmime.cxx index decd1041a547..9a8b463783ba 100644 --- a/tools/source/inet/inetmime.cxx +++ b/tools/source/inet/inetmime.cxx @@ -1350,9 +1350,9 @@ OUString INetMIME::decodeHeaderFieldBody(const OString& rBody) bDone = true; break; } - sText.append(rBody.copy( + sText.append(rBody, (pEncodedTextCopyBegin - pBegin), - (q - 1 - pEncodedTextCopyBegin))); + (q - 1 - pEncodedTextCopyBegin)); sText.append(sal_Char(nDigit1 << 4 | nDigit2)); q += 2; pEncodedTextCopyBegin = q; @@ -1361,18 +1361,18 @@ OUString INetMIME::decodeHeaderFieldBody(const OString& rBody) case '?': if (q - pEncodedTextBegin > 1) - sText.append(rBody.copy( + sText.append(rBody, (pEncodedTextCopyBegin - pBegin), - (q - 1 - pEncodedTextCopyBegin))); + (q - 1 - pEncodedTextCopyBegin)); else bEncodedWord = false; bDone = true; break; case '_': - sText.append(rBody.copy( + sText.append(rBody, (pEncodedTextCopyBegin - pBegin), - (q - 1 - pEncodedTextCopyBegin))); + (q - 1 - pEncodedTextCopyBegin)); sText.append(' '); pEncodedTextCopyBegin = q; break; |