diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-10 22:11:00 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-11 11:55:04 +0000 |
commit | 6ddb02bad568be58c8728a40c43b81232c1ca4a0 (patch) | |
tree | b6883ad68c870f9ce7e0ee2676956e673f2848d8 /sc/source/filter/excel/xestream.cxx | |
parent | c437b033748733273c43d071ab42a1863ed80416 (diff) |
ByteString->rtl::OString
Diffstat (limited to 'sc/source/filter/excel/xestream.cxx')
-rw-r--r-- | sc/source/filter/excel/xestream.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/excel/xestream.cxx b/sc/source/filter/excel/xestream.cxx index 8d7119028576..3cd38c794dd0 100644 --- a/sc/source/filter/excel/xestream.cxx +++ b/sc/source/filter/excel/xestream.cxx @@ -348,10 +348,10 @@ void XclExpStream::WriteUnicodeBuffer( const ScfUInt16Vec& rBuffer, sal_uInt8 nF // Xcl has an obscure sense of whether starting a new record or not, // and crashes if it encounters the string header at the very end of a record. // Thus we add 1 to give some room, seems like they do it that way but with another count (10?) -void XclExpStream::WriteByteString( const ByteString& rString, sal_uInt16 nMaxLen, bool b16BitCount ) +void XclExpStream::WriteByteString( const rtl::OString& rString, sal_uInt16 nMaxLen, bool b16BitCount ) { SetSliceSize( 0 ); - sal_Size nLen = ::std::min< sal_Size >( rString.Len(), nMaxLen ); + sal_Size nLen = ::std::min< sal_Size >( rString.getLength(), nMaxLen ); if( !b16BitCount ) nLen = ::std::min< sal_Size >( nLen, 0xFF ); @@ -364,7 +364,7 @@ void XclExpStream::WriteByteString( const ByteString& rString, sal_uInt16 nMaxLe operator<<( static_cast< sal_uInt16 >( nLen ) ); else operator<<( static_cast< sal_uInt8 >( nLen ) ); - Write( rString.GetBuffer(), nLen ); + Write( rString.getStr(), nLen ); } void XclExpStream::WriteCharBuffer( const ScfUInt8Vec& rBuffer ) |