summaryrefslogtreecommitdiff
path: root/svtools/source/svhtml/parhtml.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/svhtml/parhtml.cxx')
-rw-r--r--svtools/source/svhtml/parhtml.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index a86fad6b6bba..9d1b5d98ac40 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -1875,14 +1875,14 @@ bool HTMLParser::IsHTMLFormat( const sal_Char* pHeader,
bool bUCS2B = false;
if( bSwitchToUCS2 )
{
- if( 0xfeU == (sal_uChar)pHeader[0] &&
- 0xffU == (sal_uChar)pHeader[1] )
+ if( 0xfeU == (unsigned char)pHeader[0] &&
+ 0xffU == (unsigned char)pHeader[1] )
{
eEnc = RTL_TEXTENCODING_UCS2;
bUCS2B = true;
}
- else if( 0xffU == (sal_uChar)pHeader[0] &&
- 0xfeU == (sal_uChar)pHeader[1] )
+ else if( 0xffU == (unsigned char)pHeader[0] &&
+ 0xfeU == (unsigned char)pHeader[1] )
{
eEnc = RTL_TEXTENCODING_UCS2;
}
@@ -1891,12 +1891,12 @@ bool HTMLParser::IsHTMLFormat( const sal_Char* pHeader,
(
RTL_TEXTENCODING_UCS2 == eEnc &&
(
- (0xfe == (sal_uChar)pHeader[0] && 0xff == (sal_uChar)pHeader[1]) ||
- (0xff == (sal_uChar)pHeader[0] && 0xfe == (sal_uChar)pHeader[1])
+ (0xfe == (unsigned char)pHeader[0] && 0xff == (unsigned char)pHeader[1]) ||
+ (0xff == (unsigned char)pHeader[0] && 0xfe == (unsigned char)pHeader[1])
)
)
{
- if( 0xfe == (sal_uChar)pHeader[0] )
+ if( 0xfe == (unsigned char)pHeader[0] )
bUCS2B = true;
sal_Int32 nLen = 2;