diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/tools/inetmsg.hxx | 10 | ||||
-rw-r--r-- | tools/source/inet/inetstrm.cxx | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/tools/inc/tools/inetmsg.hxx b/tools/inc/tools/inetmsg.hxx index 0c3468082b36..c5988f758e0e 100644 --- a/tools/inc/tools/inetmsg.hxx +++ b/tools/inc/tools/inetmsg.hxx @@ -47,15 +47,15 @@ class DateTime; *=====================================================================*/ class INetMessageHeader { - ByteString m_aName; - ByteString m_aValue; + rtl::OString m_aName; + rtl::OString m_aValue; public: INetMessageHeader() {} INetMessageHeader ( - const ByteString& rName, const ByteString& rValue) + const rtl::OString& rName, const rtl::OString& rValue) : m_aName (rName), m_aValue (rValue) {} @@ -74,8 +74,8 @@ public: return *this; } - const ByteString& GetName() const { return m_aName; } - const ByteString& GetValue() const { return m_aValue; } + const rtl::OString& GetName() const { return m_aName; } + const rtl::OString& GetValue() const { return m_aValue; } friend SvStream& operator<< ( SvStream& rStrm, const INetMessageHeader& rHdr) diff --git a/tools/source/inet/inetstrm.cxx b/tools/source/inet/inetstrm.cxx index 5345067aa0f8..557a32cc8865 100644 --- a/tools/source/inet/inetstrm.cxx +++ b/tools/source/inet/inetstrm.cxx @@ -304,12 +304,12 @@ int INetMessageIStream::GetMsgLine (sal_Char *pData, sal_uIntPtr nSize) for (i = 0; i < n; i++) { INetMessageHeader aHeader (pSourceMsg->GetHeaderField(i)); - if (aHeader.GetValue().Len()) + if (aHeader.GetValue().getLength()) { // NYI: Folding long lines. - *pMsgBuffer << (sal_Char*)(aHeader.GetName().GetBuffer()); + *pMsgBuffer << aHeader.GetName().getStr(); *pMsgBuffer << ": "; - *pMsgBuffer << (sal_Char*)(aHeader.GetValue().GetBuffer()); + *pMsgBuffer << aHeader.GetValue().getStr(); *pMsgBuffer << "\r\n"; } } |