diff options
author | Noel Grandin <noel@peralex.com> | 2013-12-20 14:23:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-01-07 09:43:37 +0200 |
commit | 82625bb98e256b83351328d3bf2a14e3dd244eef (patch) | |
tree | 9b661850ae5df9ea27fcac063cfe61862046c8d1 /bridges | |
parent | 347af397cafa97cfa7d5027f83fff784ca04a397 (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 'bridges')
25 files changed, 30 insertions, 30 deletions
diff --git a/bridges/source/cpp_uno/gcc3_aix_powerpc/except.cxx b/bridges/source/cpp_uno/gcc3_aix_powerpc/except.cxx index 9ce12f618540..d3e713956a1e 100644 --- a/bridges/source/cpp_uno/gcc3_aix_powerpc/except.cxx +++ b/bridges/source/cpp_uno/gcc3_aix_powerpc/except.cxx @@ -75,7 +75,7 @@ static OUString toUNOname( char const * p ) SAL_THROW(()) buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } #ifdef DEBUG diff --git a/bridges/source/cpp_uno/gcc3_ios_arm/except.cxx b/bridges/source/cpp_uno/gcc3_ios_arm/except.cxx index 2f1df7a85adb..1ab474212989 100644 --- a/bridges/source/cpp_uno/gcc3_ios_arm/except.cxx +++ b/bridges/source/cpp_uno/gcc3_ios_arm/except.cxx @@ -144,7 +144,7 @@ static OUString toUNOname( char const * p ) SAL_THROW(()) buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } OUString result( buf.makeStringAndClear() ); diff --git a/bridges/source/cpp_uno/gcc3_linux_alpha/except.cxx b/bridges/source/cpp_uno/gcc3_linux_alpha/except.cxx index 95e44d40c9b9..7696f6184df7 100644 --- a/bridges/source/cpp_uno/gcc3_linux_alpha/except.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_alpha/except.cxx @@ -75,7 +75,7 @@ static OUString toUNOname( char const * p ) SAL_THROW(()) buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } #if OSL_DEBUG_LEVEL > 1 diff --git a/bridges/source/cpp_uno/gcc3_linux_arm/except.cxx b/bridges/source/cpp_uno/gcc3_linux_arm/except.cxx index bb3694e72fe2..c5e837effe85 100644 --- a/bridges/source/cpp_uno/gcc3_linux_arm/except.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_arm/except.cxx @@ -76,7 +76,7 @@ namespace CPPU_CURRENT_NAMESPACE buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } #if OSL_DEBUG_LEVEL > 1 diff --git a/bridges/source/cpp_uno/gcc3_linux_hppa/except.cxx b/bridges/source/cpp_uno/gcc3_linux_hppa/except.cxx index 73ddede13810..2e4e149cb6f0 100644 --- a/bridges/source/cpp_uno/gcc3_linux_hppa/except.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_hppa/except.cxx @@ -76,7 +76,7 @@ namespace CPPU_CURRENT_NAMESPACE buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } #if OSL_DEBUG_LEVEL > 1 diff --git a/bridges/source/cpp_uno/gcc3_linux_ia64/except.cxx b/bridges/source/cpp_uno/gcc3_linux_ia64/except.cxx index 95e44d40c9b9..7696f6184df7 100644 --- a/bridges/source/cpp_uno/gcc3_linux_ia64/except.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_ia64/except.cxx @@ -75,7 +75,7 @@ static OUString toUNOname( char const * p ) SAL_THROW(()) buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } #if OSL_DEBUG_LEVEL > 1 diff --git a/bridges/source/cpp_uno/gcc3_linux_intel/except.cxx b/bridges/source/cpp_uno/gcc3_linux_intel/except.cxx index a49bd952feca..ee26ba03f33e 100644 --- a/bridges/source/cpp_uno/gcc3_linux_intel/except.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_intel/except.cxx @@ -77,7 +77,7 @@ static OUString toUNOname( char const * p ) SAL_THROW(()) buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } #if OSL_DEBUG_LEVEL > 1 diff --git a/bridges/source/cpp_uno/gcc3_linux_m68k/except.cxx b/bridges/source/cpp_uno/gcc3_linux_m68k/except.cxx index 73ddede13810..2e4e149cb6f0 100644 --- a/bridges/source/cpp_uno/gcc3_linux_m68k/except.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_m68k/except.cxx @@ -76,7 +76,7 @@ namespace CPPU_CURRENT_NAMESPACE buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } #if OSL_DEBUG_LEVEL > 1 diff --git a/bridges/source/cpp_uno/gcc3_linux_mips/except.cxx b/bridges/source/cpp_uno/gcc3_linux_mips/except.cxx index e8608b3eabb1..bbc9b62da626 100644 --- a/bridges/source/cpp_uno/gcc3_linux_mips/except.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_mips/except.cxx @@ -73,7 +73,7 @@ static OUString toUNOname( char const * p ) SAL_THROW(()) buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } #if defined BRIDGES_DEBUG diff --git a/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx b/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx index 95e44d40c9b9..7696f6184df7 100644 --- a/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_powerpc/except.cxx @@ -75,7 +75,7 @@ static OUString toUNOname( char const * p ) SAL_THROW(()) buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } #if OSL_DEBUG_LEVEL > 1 diff --git a/bridges/source/cpp_uno/gcc3_linux_powerpc64/except.cxx b/bridges/source/cpp_uno/gcc3_linux_powerpc64/except.cxx index 95e44d40c9b9..7696f6184df7 100644 --- a/bridges/source/cpp_uno/gcc3_linux_powerpc64/except.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_powerpc64/except.cxx @@ -75,7 +75,7 @@ static OUString toUNOname( char const * p ) SAL_THROW(()) buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } #if OSL_DEBUG_LEVEL > 1 diff --git a/bridges/source/cpp_uno/gcc3_linux_s390/except.cxx b/bridges/source/cpp_uno/gcc3_linux_s390/except.cxx index 95e44d40c9b9..7696f6184df7 100644 --- a/bridges/source/cpp_uno/gcc3_linux_s390/except.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_s390/except.cxx @@ -75,7 +75,7 @@ static OUString toUNOname( char const * p ) SAL_THROW(()) buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } #if OSL_DEBUG_LEVEL > 1 diff --git a/bridges/source/cpp_uno/gcc3_linux_s390x/except.cxx b/bridges/source/cpp_uno/gcc3_linux_s390x/except.cxx index 95e44d40c9b9..7696f6184df7 100644 --- a/bridges/source/cpp_uno/gcc3_linux_s390x/except.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_s390x/except.cxx @@ -75,7 +75,7 @@ static OUString toUNOname( char const * p ) SAL_THROW(()) buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } #if OSL_DEBUG_LEVEL > 1 diff --git a/bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx b/bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx index 5c4ad93bc6ea..e78c2407c443 100644 --- a/bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_sparc/except.cxx @@ -74,7 +74,7 @@ static OUString toUNOname( char const * p ) SAL_THROW(()) buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } #if defined BRIDGES_DEBUG diff --git a/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx b/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx index 18a6eff69fea..2e1536899abd 100644 --- a/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx @@ -74,7 +74,7 @@ static OUString toUNOname( char const * p ) SAL_THROW(()) buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } #if OSL_DEBUG_LEVEL > 1 diff --git a/bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx b/bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx index 0c31eed41b58..4a551895574b 100644 --- a/bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx +++ b/bridges/source/cpp_uno/gcc3_macosx_intel/except.cxx @@ -146,7 +146,7 @@ static OUString toUNOname( char const * p ) SAL_THROW(()) buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } #if OSL_DEBUG_LEVEL > 1 diff --git a/bridges/source/cpp_uno/gcc3_macosx_powerpc/except.cxx b/bridges/source/cpp_uno/gcc3_macosx_powerpc/except.cxx index bb5057bf7f80..80ccc1eb10fb 100644 --- a/bridges/source/cpp_uno/gcc3_macosx_powerpc/except.cxx +++ b/bridges/source/cpp_uno/gcc3_macosx_powerpc/except.cxx @@ -74,7 +74,7 @@ static OUString toUNOname( char const * p ) SAL_THROW(()) buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } #if OSL_DEBUG_LEVEL > 1 diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx b/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx index 0c31eed41b58..4a551895574b 100644 --- a/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx +++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/except.cxx @@ -146,7 +146,7 @@ static OUString toUNOname( char const * p ) SAL_THROW(()) buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } #if OSL_DEBUG_LEVEL > 1 diff --git a/bridges/source/cpp_uno/gcc3_solaris_intel/except.cxx b/bridges/source/cpp_uno/gcc3_solaris_intel/except.cxx index 97fbbc98c3b5..9c0c937af520 100644 --- a/bridges/source/cpp_uno/gcc3_solaris_intel/except.cxx +++ b/bridges/source/cpp_uno/gcc3_solaris_intel/except.cxx @@ -76,7 +76,7 @@ static OUString toUNOname( char const * p ) SAL_THROW(()) buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } #if OSL_DEBUG_LEVEL > 1 diff --git a/bridges/source/cpp_uno/gcc3_solaris_sparc/except.cxx b/bridges/source/cpp_uno/gcc3_solaris_sparc/except.cxx index 996eb5aac46c..a869281433c8 100644 --- a/bridges/source/cpp_uno/gcc3_solaris_sparc/except.cxx +++ b/bridges/source/cpp_uno/gcc3_solaris_sparc/except.cxx @@ -73,7 +73,7 @@ static OUString toUNOname( char const * p ) SAL_THROW(()) buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } #if defined BRIDGES_DEBUG diff --git a/bridges/source/cpp_uno/mingw_intel/except.cxx b/bridges/source/cpp_uno/mingw_intel/except.cxx index ae82fbb13483..330f66881db7 100644 --- a/bridges/source/cpp_uno/mingw_intel/except.cxx +++ b/bridges/source/cpp_uno/mingw_intel/except.cxx @@ -80,7 +80,7 @@ static OUString toUNOname( char const * p ) SAL_THROW(()) buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } #if OSL_DEBUG_LEVEL > 1 diff --git a/bridges/source/cpp_uno/mingw_x86-64/except.cxx b/bridges/source/cpp_uno/mingw_x86-64/except.cxx index ae82fbb13483..330f66881db7 100644 --- a/bridges/source/cpp_uno/mingw_x86-64/except.cxx +++ b/bridges/source/cpp_uno/mingw_x86-64/except.cxx @@ -80,7 +80,7 @@ static OUString toUNOname( char const * p ) SAL_THROW(()) buf.appendAscii( p, n ); p += n; if ('E' != *p) - buf.append( (sal_Unicode)'.' ); + buf.append( '.' ); } #if OSL_DEBUG_LEVEL > 1 diff --git a/bridges/source/cpp_uno/msvc_win32_intel/except.cxx b/bridges/source/cpp_uno/msvc_win32_intel/except.cxx index b2c97badabcc..2aecc3a03afc 100644 --- a/bridges/source/cpp_uno/msvc_win32_intel/except.cxx +++ b/bridges/source/cpp_uno/msvc_win32_intel/except.cxx @@ -56,7 +56,7 @@ static inline OUString toUNOname( OUString const & rRTTIname ) throw () aRet.append( aStr.copy( n +1, nPos -n -1 ) ); if (n >= 0) { - aRet.append( (sal_Unicode)'.' ); + aRet.append( '.' ); } nPos = n; } @@ -72,10 +72,10 @@ static inline OUString toRTTIname( OUString const & rUNOname ) throw () { sal_Int32 n = rUNOname.lastIndexOf( '.', nPos ); aRet.append( rUNOname.copy( n +1, nPos -n -1 ) ); - aRet.append( (sal_Unicode)'@' ); + aRet.append( '@' ); nPos = n; } - aRet.append( (sal_Unicode)'@' ); + aRet.append( '@' ); return aRet.makeStringAndClear(); } diff --git a/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx b/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx index cb3134c74fa5..26688aa29d96 100644 --- a/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx +++ b/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx @@ -273,7 +273,7 @@ static inline OUString toUNOname( aRet.append( aStr.copy( n +1, nPos -n -1 ) ); if (n >= 0) { - aRet.append( (sal_Unicode)'.' ); + aRet.append( '.' ); } nPos = n; } @@ -291,10 +291,10 @@ static inline OUString toRTTIname( { sal_Int32 n = rUNOname.lastIndexOf( '.', nPos ); aRet.append( rUNOname.copy( n +1, nPos -n -1 ) ); - aRet.append( (sal_Unicode)'@' ); + aRet.append( '@' ); nPos = n; } - aRet.append( (sal_Unicode)'@' ); + aRet.append( '@' ); return aRet.makeStringAndClear(); } diff --git a/bridges/source/cpp_uno/shared/component.cxx b/bridges/source/cpp_uno/shared/component.cxx index bacd9a721348..c6ec241ad367 100644 --- a/bridges/source/cpp_uno/shared/component.cxx +++ b/bridges/source/cpp_uno/shared/component.cxx @@ -110,12 +110,12 @@ static void s_stub_computeObjectIdentifier(va_list * pParam) // interface OUStringBuffer oid( 64 ); oid.append( reinterpret_cast< sal_Int64 >(xHome.get()), 16 ); - oid.append( (sal_Unicode)';' ); + oid.append( ';' ); // ;environment[context] oid.append( *reinterpret_cast< OUString const * >( &((uno_Environment *) pEnv)->pTypeName ) ); - oid.append( (sal_Unicode)'[' ); + oid.append( '[' ); oid.append( reinterpret_cast< sal_Int64 >( ((uno_Environment *)pEnv)->pContext), |