diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-04 11:35:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-04 11:48:05 +0200 |
commit | 03614918c028e82df353308837864c6fc7ff992c (patch) | |
tree | 631bc863274856e739e9d15c05f302e87383e751 /sc/source/filter/excel/xestream.cxx | |
parent | fb6c99f21e03afb85d00459ca1e1abb07e71d126 (diff) |
loplugin:unuseddefaultparam in sc
Change-Id: Id461fc600bec5fe372875c2dcf405997fcf9f0b4
Diffstat (limited to 'sc/source/filter/excel/xestream.cxx')
-rw-r--r-- | sc/source/filter/excel/xestream.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/excel/xestream.cxx b/sc/source/filter/excel/xestream.cxx index 7b7f23dbf601..ae9857b784ee 100644 --- a/sc/source/filter/excel/xestream.cxx +++ b/sc/source/filter/excel/xestream.cxx @@ -325,10 +325,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 OString& rString, sal_uInt16 nMaxLen ) +void XclExpStream::WriteByteString( const OString& rString ) { SetSliceSize( 0 ); - sal_Size nLen = ::std::min< sal_Size >( rString.getLength(), nMaxLen ); + sal_Size nLen = ::std::min< sal_Size >( rString.getLength(), 0x00FF ); nLen = ::std::min< sal_Size >( nLen, 0xFF ); sal_uInt16 nLeft = PrepareWrite(); |