summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-04-03 08:50:28 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-04-03 13:17:37 +0200
commitac8ee6e8f7f2de31e1dc496c1fab953e88e15bba (patch)
treedee587ee89174b613f64806d15e9bcbf61d64510 /tools
parent3c7354a85a9bd47a2676aadaad2f6622fe2d959c (diff)
Revert "add more append methods to *StringBuffer"
This reverts commit 8cfa7f4dc00f3dd37e57917ef25c806b0e9e6e73. comment from sberg: we already have 70519a43e0d89a6b5d89859a6851f8c757c6b0c7 "Replace OUStringBuffer::appendCopy with append(std::u16string_view)" (which can be extended to OStringBuffer if needed) Change-Id: Ifcc550a8cf26ef38ad49fde8b067f53c999c9276 Reviewed-on: https://gerrit.libreoffice.org/70178 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/inet/inetmime.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/source/inet/inetmime.cxx b/tools/source/inet/inetmime.cxx
index 9a8b463783ba..decd1041a547 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,
+ sText.append(rBody.copy(
(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,
+ sText.append(rBody.copy(
(pEncodedTextCopyBegin - pBegin),
- (q - 1 - pEncodedTextCopyBegin));
+ (q - 1 - pEncodedTextCopyBegin)));
else
bEncodedWord = false;
bDone = true;
break;
case '_':
- sText.append(rBody,
+ sText.append(rBody.copy(
(pEncodedTextCopyBegin - pBegin),
- (q - 1 - pEncodedTextCopyBegin));
+ (q - 1 - pEncodedTextCopyBegin)));
sText.append(' ');
pEncodedTextCopyBegin = q;
break;