diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-25 09:41:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-25 09:42:07 +0100 |
commit | 24b0d0a0a247cf1cb39b8c2f544f48ce1aecc45d (patch) | |
tree | 8ddcb4b0e48771b00d5f251b8e0ccbb55604f05e /tools/source/inet | |
parent | 005f5d443e432130b902e1c78283c5f57f34d2b5 (diff) |
ByteString->rtl::OString
Diffstat (limited to 'tools/source/inet')
-rw-r--r-- | tools/source/inet/inetstrm.cxx | 16 |
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 |