summaryrefslogtreecommitdiff
path: root/tools/source/inet
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-23 00:38:42 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-23 10:35:45 +0100
commit050b80a6fc9b6f0c550c5ca20fa3c93e9552c13a (patch)
treeadde9066eb1669bc9df616b839c96ab6070d1b12 /tools/source/inet
parentaf6ce167af13f896e1786ef7d3c2d194aaf1c3dd (diff)
ditch deprecated api
Diffstat (limited to 'tools/source/inet')
-rw-r--r--tools/source/inet/inetstrm.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/source/inet/inetstrm.cxx b/tools/source/inet/inetstrm.cxx
index 7a04ea24af20..6243889cfe7f 100644
--- a/tools/source/inet/inetstrm.cxx
+++ b/tools/source/inet/inetstrm.cxx
@@ -1609,13 +1609,13 @@ int INetMIMEMessageStream::PutMsgLine (const sal_Char *pData, sal_uIntPtr nSize)
if (pMsg->GetMultipartBoundary().Len() == 0)
{
// Determine boundary.
- ByteString aType (
- pMsg->GetContentType(), RTL_TEXTENCODING_ASCII_US);
- ByteString aLowerType (aType);
+ rtl::OString aType(rtl::OUStringToOString(
+ pMsg->GetContentType(), RTL_TEXTENCODING_ASCII_US));
+ ByteString aLowerType(aType);
aLowerType.ToLowerAscii();
sal_uInt16 nPos = aLowerType.Search ("boundary=");
- ByteString aBoundary (aType.Copy (nPos + 9));
+ ByteString aBoundary(aType.copy(nPos + 9));
aBoundary.EraseLeadingAndTrailingChars (' ');
aBoundary.EraseLeadingAndTrailingChars ('"');