summaryrefslogtreecommitdiff
path: root/tools/source/inet
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-25 09:41:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-25 09:42:07 +0100
commit24b0d0a0a247cf1cb39b8c2f544f48ce1aecc45d (patch)
tree8ddcb4b0e48771b00d5f251b8e0ccbb55604f05e /tools/source/inet
parent005f5d443e432130b902e1c78283c5f57f34d2b5 (diff)
ByteString->rtl::OString
Diffstat (limited to 'tools/source/inet')
-rw-r--r--tools/source/inet/inetstrm.cxx16
1 files changed, 9 insertions, 7 deletions
diff --git a/tools/source/inet/inetstrm.cxx b/tools/source/inet/inetstrm.cxx
index 6243889cfe7f..6fc8df2d2ed8 100644
--- a/tools/source/inet/inetstrm.cxx
+++ b/tools/source/inet/inetstrm.cxx
@@ -30,6 +30,7 @@
#include "precompiled_tools.hxx"
#include <sal/types.h>
#include <rtl/memory.h>
+#include <rtl/strbuf.hxx>
#include <tools/cachestr.hxx>
#include <tools/debug.hxx>
#include <tools/inetmsg.hxx>
@@ -1441,13 +1442,14 @@ int INetMIMEMessageStream::GetMsgLine (sal_Char *pData, sal_uIntPtr nSize)
if (pMsg->IsMultipart())
{
// Insert multipart delimiter.
- ByteString aDelim ("--");
- aDelim += pMsg->GetMultipartBoundary();
- aDelim += "\r\n";
-
- rtl_copyMemory (
- pData, aDelim.GetBuffer(), aDelim.Len());
- return aDelim.Len();
+ rtl::OStringBuffer aDelim(
+ RTL_CONSTASCII_STRINGPARAM("--"));
+ aDelim.append(pMsg->GetMultipartBoundary());
+ aDelim.append("\r\n");
+
+ rtl_copyMemory(pData, aDelim.getStr(),
+ aDelim.getLength());
+ return aDelim.getLength();
}
}
else