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 /unotools | |
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 'unotools')
-rw-r--r-- | unotools/source/config/docinfohelper.cxx | 12 | ||||
-rw-r--r-- | unotools/source/i18n/localedatawrapper.cxx | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/unotools/source/config/docinfohelper.cxx b/unotools/source/config/docinfohelper.cxx index f9d5976dece6..b5d0cf9aa7b4 100644 --- a/unotools/source/config/docinfohelper.cxx +++ b/unotools/source/config/docinfohelper.cxx @@ -40,7 +40,7 @@ OUString DocInfoHelper::GetGeneratorString() if ( !aValue.isEmpty() ) { aResult.append( aValue.replace( ' ', '_' ) ); - aResult.append( (sal_Unicode)'/' ); + aResult.append( '/' ); aValue = utl::ConfigManager::getProductVersion(); if ( !aValue.isEmpty() ) @@ -58,11 +58,11 @@ OUString DocInfoHelper::GetGeneratorString() OUString arch( "$_ARCH" ); ::rtl::Bootstrap::expandMacros(os); ::rtl::Bootstrap::expandMacros(arch); - aResult.append( (sal_Unicode)'$' ); + aResult.append( '$' ); aResult.append( os ); - aResult.append( (sal_Unicode)'_' ); + aResult.append( '_' ); aResult.append( arch ); - aResult.append( (sal_Unicode)' ' ); + aResult.append( ' ' ); } // second product: LibreOffice_project/<build_information> @@ -79,13 +79,13 @@ OUString DocInfoHelper::GetGeneratorString() { case '(': case '[': - aResult.append( (sal_Unicode)'$' ); + aResult.append( '$' ); break; case ')': case ']': break; case ':': - aResult.append( (sal_Unicode)'-' ); + aResult.append( '-' ); break; default: aResult.append( c ); diff --git a/unotools/source/i18n/localedatawrapper.cxx b/unotools/source/i18n/localedatawrapper.cxx index 1ff373c66f0a..a05ee218d664 100644 --- a/unotools/source/i18n/localedatawrapper.cxx +++ b/unotools/source/i18n/localedatawrapper.cxx @@ -1745,7 +1745,7 @@ OUString LocaleDataWrapper::appendLocaleInfo(const OUString& rDebugMsg) const { ::utl::ReadWriteGuard aGuard( aMutex, ::utl::ReadWriteGuardMode::nBlockCritical ); OUStringBuffer aDebugMsg(rDebugMsg); - aDebugMsg.append(static_cast<sal_Unicode>('\n')); + aDebugMsg.append('\n'); aDebugMsg.append(maLanguageTag.getBcp47()); aDebugMsg.appendAscii(" requested\n"); LanguageTag aLoaded = getLoadedLanguageTag(); |