diff options
Diffstat (limited to 'tools/source/inet')
-rw-r--r-- | tools/source/inet/inetstrm.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/source/inet/inetstrm.cxx b/tools/source/inet/inetstrm.cxx index e2a0e9770d13..62889bae4733 100644 --- a/tools/source/inet/inetstrm.cxx +++ b/tools/source/inet/inetstrm.cxx @@ -159,9 +159,9 @@ int INetMIMEMessageStream::GetMsgLine(char* pData, sal_uInt32 nSize) if (pSourceMsg->IsMultipart()) { // Insert multipart delimiter. - OStringBuffer aDelim("--"); - aDelim.append(pSourceMsg->GetMultipartBoundary()); - aDelim.append("\r\n"); + OString aDelim = "--" + + pSourceMsg->GetMultipartBoundary() + + "\r\n"; memcpy(pData, aDelim.getStr(), aDelim.getLength()); @@ -177,9 +177,9 @@ int INetMIMEMessageStream::GetMsgLine(char* pData, sal_uInt32 nSize) if (pSourceMsg->IsMultipart()) { // Insert close delimiter. - OStringBuffer aDelim("--"); - aDelim.append(pSourceMsg->GetMultipartBoundary()); - aDelim.append("--\r\n"); + OString aDelim = "--" + + pSourceMsg->GetMultipartBoundary() + + "--\r\n"; memcpy(pData, aDelim.getStr(), aDelim.getLength()); |