summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-25 06:07:13 +0200
committerNoel Grandin <noel@peralex.com>2014-09-26 15:26:19 +0200
commitbec72dd34f8aa7419c6159bdf02c5ba34a6228a8 (patch)
tree32ebd14ed7c8d0dcfeebda1040dd785183f912ef /sc/source
parentc476a84abd83873ff807ac5943d882b43f72c90c (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 'sc/source')
-rw-r--r--sc/source/core/tool/autoform.cxx4
-rw-r--r--sc/source/ui/docshell/impex.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/tool/autoform.cxx b/sc/source/core/tool/autoform.cxx
index 19d5dfd3094b..9a18686f3514 100644
--- a/sc/source/core/tool/autoform.cxx
+++ b/sc/source/core/tool/autoform.cxx
@@ -1084,8 +1084,8 @@ bool ScAutoFormat::Save()
// Attention: A common header has to be saved
sal_uInt16 nVal = AUTOFORMAT_ID;
rStream.WriteUInt16( nVal )
- .WriteUChar( (sal_uInt8)2 ) // Number of chars of the header including this
- .WriteUChar( (sal_uInt8)::GetSOStoreTextEncoding(
+ .WriteUChar( 2 ) // Number of chars of the header including this
+ .WriteUChar( ::GetSOStoreTextEncoding(
osl_getThreadTextEncoding() ) );
m_aVersions.Write(rStream, fileVersion);
diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx
index 421bf4d96bee..2f5ff173db2c 100644
--- a/sc/source/ui/docshell/impex.cxx
+++ b/sc/source/ui/docshell/impex.cxx
@@ -265,7 +265,7 @@ bool ScImportExport::ExportData( const OUString& rMimeType,
if( ExportStream( aStrm, OUString(),
SotExchange::GetFormatIdFromMimeType( rMimeType ) ))
{
- aStrm.WriteUChar( (sal_uInt8) 0 );
+ aStrm.WriteUChar( 0 );
rValue <<= ::com::sun::star::uno::Sequence< sal_Int8 >(
(sal_Int8*)aStrm.GetData(),
aStrm.Seek( STREAM_SEEK_TO_END ) );