summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-25 05:27:36 +0200
committerNoel Grandin <noel@peralex.com>2014-09-26 15:25:40 +0200
commitd46b16e1e495c153f70633d2da5c2bb0aba85cc9 (patch)
tree79134004da6c8e06ef5d1a007c4d35340c463794 /sc/source/ui/docshell
parent8f684e21de081350f0ce1f0bd0420f4775c5388d (diff)
remove unnecessary casts's
left over from our conversion of the SvStream output operators to more specific methods Change-Id: I63f18be8e940098c2acbbc73ee49ede3a949fcb2
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r--sc/source/ui/docshell/impex.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx
index f1960a17df43..421bf4d96bee 100644
--- a/sc/source/ui/docshell/impex.cxx
+++ b/sc/source/ui/docshell/impex.cxx
@@ -450,9 +450,9 @@ bool ScImportExport::ExportStream( SvStream& rStrm, const OUString& rBaseURL, sa
WriteUnicodeOrByteString( rStrm, aRefName, true );
WriteUnicodeOrByteString( rStrm, aExtraBits, true );
if ( rStrm.GetStreamCharSet() == RTL_TEXTENCODING_UNICODE )
- rStrm.WriteUInt16( sal_Unicode(0) );
+ rStrm.WriteUInt16( 0 );
else
- rStrm.WriteChar( sal_Char(0) );
+ rStrm.WriteChar( 0 );
return rStrm.GetError() == SVSTREAM_OK;
}
}
@@ -487,14 +487,14 @@ void ScImportExport::WriteUnicodeOrByteString( SvStream& rStrm, const OUString&
}
}
if ( bZero )
- rStrm.WriteUInt16( sal_Unicode(0) );
+ rStrm.WriteUInt16( 0 );
}
else
{
OString aByteStr(OUStringToOString(rString, eEnc));
rStrm.WriteCharPtr( aByteStr.getStr() );
if ( bZero )
- rStrm.WriteChar( sal_Char(0) );
+ rStrm.WriteChar( 0 );
}
}
@@ -506,13 +506,13 @@ void ScImportExport::WriteUnicodeOrByteEndl( SvStream& rStrm )
switch ( rStrm.GetLineDelimiter() )
{
case LINEEND_CR :
- rStrm.WriteUInt16( sal_Unicode('\r') );
+ rStrm.WriteUInt16( '\r' );
break;
case LINEEND_LF :
- rStrm.WriteUInt16( sal_Unicode('\n') );
+ rStrm.WriteUInt16( '\n' );
break;
default:
- rStrm.WriteUInt16( sal_Unicode('\r') ).WriteUInt16( sal_Unicode('\n') );
+ rStrm.WriteUInt16( '\r' ).WriteUInt16( '\n' );
}
}
else