diff options
author | Noel Grandin <noel@peralex.com> | 2013-12-20 14:23:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-01-07 09:43:37 +0200 |
commit | 82625bb98e256b83351328d3bf2a14e3dd244eef (patch) | |
tree | 9b661850ae5df9ea27fcac063cfe61862046c8d1 /svtools | |
parent | 347af397cafa97cfa7d5027f83fff784ca04a397 (diff) |
remove unnecessary sal_Unicode casts in OUStringBuffer::append calls
Convert code like:
buf.append( static_cast<sal_Unicode>('!') );
to:
buf.append( '!' );
Change-Id: Iacb03a61de65a895540940953b49620677b3d051
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/svhtml/parhtml.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx index 9d1b5d98ac40..3263b125ce62 100644 --- a/svtools/source/svhtml/parhtml.cxx +++ b/svtools/source/svhtml/parhtml.cxx @@ -433,7 +433,7 @@ int HTMLParser::ScanText( const sal_Unicode cBreak ) case '&': bEqSignFound = false; if( bReadXMP ) - sTmpBuffer.append( (sal_Unicode)'&' ); + sTmpBuffer.append( '&' ); else { sal_uLong nStreamPos = rInput.Tell(); @@ -542,7 +542,7 @@ int HTMLParser::ScanText( const sal_Unicode cBreak ) { // back in stream, insert '&' // and restart with next character - sTmpBuffer.append( (sal_Unicode)'&' ); + sTmpBuffer.append( '&' ); DBG_ASSERT( rInput.Tell()-nStreamPos == (sal_uLong)(nPos+1)*GetCharSize(), @@ -618,7 +618,7 @@ int HTMLParser::ScanText( const sal_Unicode cBreak ) // &{...};-JavaScript-Macros are not supported any longer. else if( IsParserWorking() ) { - sTmpBuffer.append( (sal_Unicode)'&' ); + sTmpBuffer.append( '&' ); bNextCh = false; break; } @@ -632,7 +632,7 @@ int HTMLParser::ScanText( const sal_Unicode cBreak ) // \ has to be escaped as well. // Space is protected because it's not a delimiter between // options. - sTmpBuffer.append( (sal_Unicode)'\\' ); + sTmpBuffer.append( '\\' ); if( MAX_LEN == sTmpBuffer.getLength() ) aToken += sTmpBuffer.makeStringAndClear(); } @@ -670,11 +670,11 @@ int HTMLParser::ScanText( const sal_Unicode cBreak ) if( '>'==cBreak ) { // Innerhalb von Tags kennzeichnen - sTmpBuffer.append( (sal_Unicode)'\\' ); + sTmpBuffer.append( '\\' ); if( MAX_LEN == sTmpBuffer.getLength() ) aToken += sTmpBuffer.makeStringAndClear(); } - sTmpBuffer.append( (sal_Unicode)'\\' ); + sTmpBuffer.append( '\\' ); break; case '\"': @@ -713,7 +713,7 @@ int HTMLParser::ScanText( const sal_Unicode cBreak ) if( '>' == cBreak ) { // If scanning options treat it like a space, ... - sTmpBuffer.append( (sal_Unicode)' ' ); + sTmpBuffer.append( ' ' ); } else { |