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:
Mike Kaganski 2023-04-29 14:26:11 +02:00
parent c395fc2ba5
commit c97ddabb78

View file

@ -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;
}