summaryrefslogtreecommitdiff
path: root/cppu/source/uno
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 /cppu/source/uno
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 'cppu/source/uno')
-rw-r--r--cppu/source/uno/lbenv.cxx8
-rw-r--r--cppu/source/uno/lbmap.cxx12
2 files changed, 10 insertions, 10 deletions
diff --git a/cppu/source/uno/lbenv.cxx b/cppu/source/uno/lbenv.cxx
index 107be170caaf..a29d2498d31f 100644
--- a/cppu/source/uno/lbenv.cxx
+++ b/cppu/source/uno/lbenv.cxx
@@ -748,7 +748,7 @@ extern "C" CPPU_DLLPUBLIC void SAL_CALL uno_dumpEnvironment(
buf.append( pOEntry->nRef, 10 );
buf.append( "; oid=\"" );
buf.append( pOEntry->oid );
- buf.append( (sal_Unicode) '\"' );
+ buf.append( '\"' );
writeLine( stream, buf.makeStringAndClear(), pFilter );
for ( ::std::size_t nPos = 0;
@@ -839,7 +839,7 @@ namespace
// good guid
sal_uInt8 ar[16];
::rtl_getGlobalProcessId( ar );
- aRet.append( (sal_Unicode)';' );
+ aRet.append( ';' );
for ( sal_Int32 i = 0; i < 16; ++i )
aRet.append( (sal_Int32)ar[i], 16 );
@@ -881,10 +881,10 @@ static void SAL_CALL unoenv_computeObjectIdentifier(
// interface
::rtl::OUStringBuffer oid( 64 );
oid.append( reinterpret_cast< sal_Int64 >(pUnoI), 16 );
- oid.append( static_cast< sal_Unicode >(';') );
+ oid.append( ';' );
// environment[context]
oid.append( ((uno_Environment *) pEnv)->pTypeName );
- oid.append( static_cast< sal_Unicode >('[') );
+ oid.append( '[' );
oid.append( reinterpret_cast< sal_Int64 >(
reinterpret_cast<
uno_Environment * >(pEnv)->pContext ), 16 );
diff --git a/cppu/source/uno/lbmap.cxx b/cppu/source/uno/lbmap.cxx
index 6fb589ed68b7..41a2059e6d38 100644
--- a/cppu/source/uno/lbmap.cxx
+++ b/cppu/source/uno/lbmap.cxx
@@ -286,15 +286,15 @@ static inline OUString getMappingName(
{
OUStringBuffer aKey( 64 );
aKey.append( rAddPurpose );
- aKey.append( (sal_Unicode)';' );
+ aKey.append( ';' );
aKey.append( rFrom.getTypeName() );
- aKey.append( (sal_Unicode)'[' );
+ aKey.append( '[' );
aKey.append( reinterpret_cast< sal_IntPtr >(rFrom.get()), 16 );
aKey.append( "];" );
aKey.append( rTo.getTypeName() );
- aKey.append( (sal_Unicode)'[' );
+ aKey.append( '[' );
aKey.append( reinterpret_cast< sal_IntPtr >(rTo.get()), 16 );
- aKey.append( (sal_Unicode)']' );
+ aKey.append( ']' );
return aKey.makeStringAndClear();
}
//==================================================================================================
@@ -306,10 +306,10 @@ static inline OUString getBridgeName(
if (!rAddPurpose.isEmpty())
{
aBridgeName.append( rAddPurpose );
- aBridgeName.append( (sal_Unicode)'_' );
+ aBridgeName.append( '_' );
}
aBridgeName.append( EnvDcp::getTypeName(rFrom.getTypeName()) );
- aBridgeName.append( (sal_Unicode)'_' );
+ aBridgeName.append( '_' );
aBridgeName.append( EnvDcp::getTypeName(rTo.getTypeName()) );
return aBridgeName.makeStringAndClear();
}