diff options
author | Noel Grandin <noel@peralex.com> | 2014-09-25 06:07:13 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-09-26 15:26:19 +0200 |
commit | bec72dd34f8aa7419c6159bdf02c5ba34a6228a8 (patch) | |
tree | 32ebd14ed7c8d0dcfeebda1040dd785183f912ef /sw | |
parent | c476a84abd83873ff807ac5943d882b43f72c90c (diff) |
remove unnecessary casts in calls to SvStream.WriteUChar
left over from our conversion of the SvStream output operators
to more specific methods
Change-Id: I2ea4c7d97e745b3e6a3834f41ac7bfefa4883c7a
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/tblafmt.cxx | 4 | ||||
-rw-r--r-- | sw/source/filter/ww8/wrtw8sty.cxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/wrtww8.cxx | 4 | ||||
-rw-r--r-- | sw/source/filter/ww8/wrtww8gr.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/config/uinums.cxx | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/core/doc/tblafmt.cxx b/sw/source/core/doc/tblafmt.cxx index 927ac9a23fc3..c95b8f48460f 100644 --- a/sw/source/core/doc/tblafmt.cxx +++ b/sw/source/core/doc/tblafmt.cxx @@ -1201,8 +1201,8 @@ bool SwTableAutoFmtTbl::Save( SvStream& rStream ) const // Attention: We need to save a general Header here sal_uInt16 nVal = AUTOFORMAT_ID; rStream.WriteUInt16( nVal ) - .WriteUChar( (sal_uInt8)2 ) // Character count of the Header including this value - .WriteUChar( (sal_uInt8)GetStoreCharSet( ::osl_getThreadTextEncoding() ) ); + .WriteUChar( 2 ) // Character count of the Header including this value + .WriteUChar( GetStoreCharSet( ::osl_getThreadTextEncoding() ) ); bRet = 0 == rStream.GetError(); if (!bRet) diff --git a/sw/source/filter/ww8/wrtw8sty.cxx b/sw/source/filter/ww8/wrtw8sty.cxx index 2ec213d99695..48901579e224 100644 --- a/sw/source/filter/ww8/wrtw8sty.cxx +++ b/sw/source/filter/ww8/wrtw8sty.cxx @@ -2328,7 +2328,7 @@ void WW8_WrPlcSubDoc::WriteGenericPlc( WW8Export& rWrt, sal_uInt8 nTTyp, for ( i = 0; i < aStrArr.size(); ++i ) { const OUString& sAuthor = aStrArr[i].first; - rWrt.pTableStrm->WriteUChar( (sal_uInt8)sAuthor.getLength() ); + rWrt.pTableStrm->WriteUChar( sAuthor.getLength() ); SwWW8Writer::WriteString8(*rWrt.pTableStrm, sAuthor, false, RTL_TEXTENCODING_MS_1252); } diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx index fa6100237ea2..6997c553ebdd 100644 --- a/sw/source/filter/ww8/wrtww8.cxx +++ b/sw/source/filter/ww8/wrtww8.cxx @@ -1589,7 +1589,7 @@ void WW8Export::WriteAsStringTable(const std::vector<OUString>& rStrings, { const OUString &rString = rStrings[n]; const OUString aNm(rString.copy(0, std::min<sal_Int32>(rString.getLength(), 255))); - rStrm.WriteUChar( (sal_uInt8)aNm.getLength() ); + rStrm.WriteUChar( aNm.getLength() ); SwWW8Writer::WriteString8(rStrm, aNm, false, RTL_TEXTENCODING_MS_1252); if (nExtraLen) @@ -1796,7 +1796,7 @@ void WW8Export::WriteChar( sal_Unicode c ) if( pPiece->IsUnicode() ) Strm().WriteUInt16( c ); else - Strm().WriteUChar( (sal_uInt8)c ); + Strm().WriteUChar( c ); } void MSWordExportBase::SaveData( sal_uLong nStt, sal_uLong nEnd ) diff --git a/sw/source/filter/ww8/wrtww8gr.cxx b/sw/source/filter/ww8/wrtww8gr.cxx index 9d47d5daa638..fad72e8fd029 100644 --- a/sw/source/filter/ww8/wrtww8gr.cxx +++ b/sw/source/filter/ww8/wrtww8gr.cxx @@ -708,7 +708,7 @@ void SwWW8WrGrf::WriteGrfFromGrfNode(SvStream& rStrm, const SwGrfNode &rGrfNd, WritePICFHeader(rStrm, rFly, mm, nWidth, nHeight, rGrfNd.GetpSwAttrSet()); - rStrm.WriteUChar( (sal_uInt8)aFileN.getLength() ); // write Pascal-String + rStrm.WriteUChar( aFileN.getLength() ); // write Pascal-String SwWW8Writer::WriteString8(rStrm, aFileN, false, RTL_TEXTENCODING_MS_1252); } diff --git a/sw/source/uibase/config/uinums.cxx b/sw/source/uibase/config/uinums.cxx index cf8b25b60454..2ba375f6ed16 100644 --- a/sw/source/uibase/config/uinums.cxx +++ b/sw/source/uibase/config/uinums.cxx @@ -112,11 +112,11 @@ bool SwBaseNumRules::Store(SvStream &rStream) { if(pNumRules[i]) { - rStream.WriteUChar( (unsigned char) sal_True ); + rStream.WriteUChar( sal_True ); pNumRules[i]->Store( rStream ); } else - rStream.WriteUChar( (unsigned char) sal_False ); + rStream.WriteUChar( sal_False ); } return true; } |