diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-12-29 22:49:27 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-05 09:18:18 +0000 |
commit | 164b4ba0c713d09684e1381590179cd3dadce2b7 (patch) | |
tree | caac9783aa9ac3e2c7a3574e426b1180ca62b4c4 /tools | |
parent | f731dc1e3506c78918b0965d77c3f51eaaf752ad (diff) |
ByteString->rtl::OString[Buffer]
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"; } } |