summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-12-20 14:23:33 +0200
committerNoel Grandin <noel@peralex.com>2014-01-07 09:43:37 +0200
commit82625bb98e256b83351328d3bf2a14e3dd244eef (patch)
tree9b661850ae5df9ea27fcac063cfe61862046c8d1 /scripting
parent347af397cafa97cfa7d5027f83fff784ca04a397 (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 'scripting')
-rw-r--r--scripting/source/stringresource/stringresource.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx
index ce814efaff3f..76d414a1deef 100644
--- a/scripting/source/stringresource/stringresource.cxx
+++ b/scripting/source/stringresource/stringresource.cxx
@@ -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++ )