Simplify a bit
Change-Id: I201dc0c1b9438b53656802c20c181654ee758a5c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151127 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
parent
c395fc2ba5
commit
c97ddabb78
1 changed files with 2 additions and 6 deletions
|
@ -170,17 +170,13 @@ ErrCode SwASCWriter::WriteStream()
|
|||
case RTL_TEXTENCODING_UCS2:
|
||||
#ifdef OSL_LITENDIAN
|
||||
Strm().SetEndian(SvStreamEndian::LITTLE);
|
||||
if( bIncludeBOM )
|
||||
{
|
||||
Strm().WriteUChar( 0xFF ).WriteUChar( 0xFE );
|
||||
}
|
||||
#else
|
||||
Strm().SetEndian(SvStreamEndian::BIG);
|
||||
#endif
|
||||
if( bIncludeBOM )
|
||||
{
|
||||
Strm().WriteUChar( 0xFE ).WriteUChar( 0xFF );
|
||||
Strm().StartWritingUnicodeText();
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue