diff options
author | Noel Grandin <noel@peralex.com> | 2014-02-06 12:44:59 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-02-12 15:32:11 +0000 |
commit | b2878af3223c438abeecc77d9976e56db31a5b49 (patch) | |
tree | 74ccf2cfdbec9093671eb98cb58dfe57f27461f1 /tools/source | |
parent | 15535e32ddcfee451d4dbc9be9de0b8c9f9d78d4 (diff) |
more SvStream:operator>> conversion
Convert the template based read_lenPrefixed methods to regular
methods.
Change-Id: Ifd0e93aca055e55a0575e4377ec2b8e266dfb019
Reviewed-on: https://gerrit.libreoffice.org/7895
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'tools/source')
-rw-r--r-- | tools/source/inet/inetmsg.cxx | 4 | ||||
-rw-r--r-- | tools/source/stream/stream.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/source/inet/inetmsg.cxx b/tools/source/inet/inetmsg.cxx index 9d982e0bd4a5..4c239bc643b3 100644 --- a/tools/source/inet/inetmsg.cxx +++ b/tools/source/inet/inetmsg.cxx @@ -126,7 +126,7 @@ SvStream& INetMessage::operator>> (SvStream& rStrm) // Copy. rStrm.ReadUInt32( nTemp ); m_nDocSize = nTemp; - m_aDocName = read_lenPrefixed_uInt8s_ToOUString<sal_uInt16>(rStrm, RTL_TEXTENCODING_UTF8); + m_aDocName = read_uInt16_lenPrefixed_uInt8s_ToOUString(rStrm, RTL_TEXTENCODING_UTF8); sal_uIntPtr i, n = 0; rStrm.ReadUInt32( nTemp ); @@ -1035,7 +1035,7 @@ SvStream& INetMIMEMessage::operator>> (SvStream& rStrm) m_nIndex[i] = nTemp; } - m_aBoundary = read_lenPrefixed_uInt8s_ToOString<sal_uInt16>(rStrm); + m_aBoundary = read_uInt16_lenPrefixed_uInt8s_ToOString(rStrm); rStrm.ReadUInt32( nTemp ); diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx index bcd73c52ce2d..ea34d30fedf9 100644 --- a/tools/source/stream/stream.cxx +++ b/tools/source/stream/stream.cxx @@ -1221,8 +1221,8 @@ OUString SvStream::ReadUniOrByteString( rtl_TextEncoding eSrcCharSet ) { // read UTF-16 string directly from stream ? if (eSrcCharSet == RTL_TEXTENCODING_UNICODE) - return read_lenPrefixed_uInt16s_ToOUString<sal_uInt32>(*this); - return read_lenPrefixed_uInt8s_ToOUString<sal_uInt16>(*this, eSrcCharSet); + return read_uInt32_lenPrefixed_uInt16s_ToOUString(*this); + return read_uInt16_lenPrefixed_uInt8s_ToOUString(*this, eSrcCharSet); } SvStream& SvStream::WriteUniOrByteString( const OUString& rStr, rtl_TextEncoding eDestCharSet ) |