From 82625bb98e256b83351328d3bf2a14e3dd244eef Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 20 Dec 2013 14:23:33 +0200 Subject: remove unnecessary sal_Unicode casts in OUStringBuffer::append calls Convert code like: buf.append( static_cast('!') ); to: buf.append( '!' ); Change-Id: Iacb03a61de65a895540940953b49620677b3d051 --- svtools/source/svhtml/parhtml.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'svtools') 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 { -- cgit