remove unnecessary sal_Unicode casts in OUStringBuffer::append calls

Convert code like:
    buf.append( static_cast<sal_Unicode>('!') );
to:
    buf.append( '!' );

Change-Id: Iacb03a61de65a895540940953b49620677b3d051
This commit is contained in:
Noel Grandin
2013-12-20 14:23:33 +02:00
parent 347af397ca
commit 82625bb98e
96 changed files with 253 additions and 258 deletions

View File

@@ -2111,28 +2111,28 @@ void implWriteCharToBuffer( OUStringBuffer& aBuf, sal_Unicode cu, bool bKey )
{
if( cu == '\\' )
{
aBuf.append( (sal_Unicode)'\\' );
aBuf.append( (sal_Unicode)'\\' );
aBuf.append( '\\' );
aBuf.append( '\\' );
}
else if( cu == 0x000a )
{
aBuf.append( (sal_Unicode)'\\' );
aBuf.append( (sal_Unicode)'n' );
aBuf.append( '\\' );
aBuf.append( 'n' );
}
else if( cu == 0x000d )
{
aBuf.append( (sal_Unicode)'\\' );
aBuf.append( (sal_Unicode)'r' );
aBuf.append( '\\' );
aBuf.append( 'r' );
}
else if( bKey && cu == '=' )
{
aBuf.append( (sal_Unicode)'\\' );
aBuf.append( (sal_Unicode)'=' );
aBuf.append( '\\' );
aBuf.append( '=' );
}
else if( bKey && cu == ':' )
{
aBuf.append( (sal_Unicode)'\\' );
aBuf.append( (sal_Unicode)':' );
aBuf.append( '\\' );
aBuf.append( ':' );
}
// ISO/IEC 8859-1 range according to:
// http://en.wikipedia.org/wiki/ISO/IEC_8859-1
@@ -2147,8 +2147,8 @@ void implWriteCharToBuffer( OUStringBuffer& aBuf, sal_Unicode cu, bool bKey )
else
{
// Unicode encoding
aBuf.append( (sal_Unicode)'\\' );
aBuf.append( (sal_Unicode)'u' );
aBuf.append( '\\' );
aBuf.append( 'u' );
sal_uInt16 nVal = cu;
for( sal_uInt16 i = 0 ; i < 4 ; i++ )