From d803483f6a5938b0d0708b8db74b30c511dd8e31 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 16 Jan 2014 12:40:11 +0200 Subject: convert more SvStream::operator<< calls .. to more explicit SvStream::Write* calls This was done using another run of the clang rewriter, and then a lot of hand tweaking to fix all the places where the rewriter did not play nice with various macros. Change-Id: I7bcab93851c8dfb59cde6bc76290c6484d88fb18 Reviewed-on: https://gerrit.libreoffice.org/7494 Reviewed-by: Michael Stahl Tested-by: Michael Stahl --- svl/source/numbers/zforlist.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'svl/source/numbers') diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index edb013775d3a..e24ac9c75888 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -791,8 +791,8 @@ bool SvNumberFormatter::Save( SvStream& rStream ) const ImpSvNumMultipleWriteHeader aHdr( rStream ); // As of 364i we store what SYSTEM locale really was, before it was hard // coded LANGUAGE_SYSTEM. - rStream << (sal_uInt16) SV_NUMBERFORMATTER_VERSION; - rStream << (sal_uInt16) SvtSysLocale().GetLanguageTag().getLanguageType() << (sal_uInt16) IniLnge; + rStream.WriteUInt16( (sal_uInt16) SV_NUMBERFORMATTER_VERSION ); + rStream.WriteUInt16( (sal_uInt16) SvtSysLocale().GetLanguageTag().getLanguageType() ).WriteUInt16( (sal_uInt16) IniLnge ); const SvNumberFormatTable* pTable = &aFTable; SvNumberFormatTable::const_iterator it = pTable->begin(); @@ -805,18 +805,18 @@ bool SvNumberFormatter::Save( SvStream& rStream ) const if ( pEntry->GetUsed() || (pEntry->GetType() & NUMBERFORMAT_DEFINED) || pEntry->GetNewStandardDefined() || (it->first % SV_COUNTRY_LANGUAGE_OFFSET == 0) ) { - rStream << it->first - << (sal_uInt16) LANGUAGE_SYSTEM - << (sal_uInt16) pEntry->GetLanguage(); + rStream.WriteUInt32( it->first ) + .WriteUInt16( (sal_uInt16) LANGUAGE_SYSTEM ) + .WriteUInt16( (sal_uInt16) pEntry->GetLanguage() ); pEntry->Save(rStream, aHdr); } ++it; } - rStream << NUMBERFORMAT_ENTRY_NOT_FOUND; // end marker + rStream.WriteUInt32( NUMBERFORMAT_ENTRY_NOT_FOUND ); // end marker // as of SV_NUMBERFORMATTER_VERSION_YEAR2000 aHdr.StartEntry(); - rStream << (sal_uInt16) GetYear2000(); + rStream.WriteUInt16( (sal_uInt16) GetYear2000() ); aHdr.EndEntry(); return rStream.GetError() ? false : true; -- cgit