summaryrefslogtreecommitdiff
path: root/cppuhelper
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 /cppuhelper
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 'cppuhelper')
-rw-r--r--cppuhelper/source/component_context.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/cppuhelper/source/component_context.cxx b/cppuhelper/source/component_context.cxx
index 8f722f0a90d3..9045c4ff2ed1 100644
--- a/cppuhelper/source/component_context.cxx
+++ b/cppuhelper/source/component_context.cxx
@@ -172,9 +172,9 @@ static OUString val2str( void const * pVal, typelib_TypeDescriptionReference * p
buf.append( (*(typelib_TypeDescriptionReference **)pVal)->pTypeName );
break;
case typelib_TypeClass_STRING:
- buf.append( (sal_Unicode)'\"' );
+ buf.append( '\"' );
buf.append( *(rtl_uString **)pVal );
- buf.append( (sal_Unicode)'\"' );
+ buf.append( '\"' );
break;
case typelib_TypeClass_ENUM:
{
@@ -194,7 +194,7 @@ static OUString val2str( void const * pVal, typelib_TypeDescriptionReference * p
if (nPos >= 0)
buf.append( ((typelib_EnumTypeDescription *)pTypeDescr)->ppEnumNames[ nPos ] );
else
- buf.append( (sal_Unicode)'?' );
+ buf.append( '?' );
::typelib_typedescription_release( pTypeDescr );
break;
@@ -206,9 +206,9 @@ static OUString val2str( void const * pVal, typelib_TypeDescriptionReference * p
buf.append( "false" );
break;
case typelib_TypeClass_CHAR:
- buf.append( (sal_Unicode)'\'' );
+ buf.append( '\'' );
buf.append( *(sal_Unicode *)pVal );
- buf.append( (sal_Unicode)'\'' );
+ buf.append( '\'' );
break;
case typelib_TypeClass_FLOAT:
buf.append( *(float *)pVal );
@@ -253,7 +253,7 @@ static OUString val2str( void const * pVal, typelib_TypeDescriptionReference * p
#endif
break;
default:
- buf.append( (sal_Unicode)'?' );
+ buf.append( '?' );
}
return buf.makeStringAndClear();