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 /svl | |
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 'svl')
-rw-r--r-- | svl/source/misc/documentlockfile.cxx | 4 | ||||
-rw-r--r-- | svl/source/misc/lockfilecommon.cxx | 2 | ||||
-rw-r--r-- | svl/source/misc/sharecontrolfile.cxx | 4 | ||||
-rw-r--r-- | svl/source/misc/urihelper.cxx | 12 | ||||
-rw-r--r-- | svl/source/numbers/zforfind.cxx | 6 |
5 files changed, 14 insertions, 14 deletions
diff --git a/svl/source/misc/documentlockfile.cxx b/svl/source/misc/documentlockfile.cxx index 67b20b9ebcfa..0b77892b1ef8 100644 --- a/svl/source/misc/documentlockfile.cxx +++ b/svl/source/misc/documentlockfile.cxx @@ -74,9 +74,9 @@ void DocumentLockFile::WriteEntryToStream( uno::Sequence< OUString > aEntry, uno { aBuffer.append( EscapeCharacters( aEntry[nEntryInd] ) ); if ( nEntryInd < aEntry.getLength() - 1 ) - aBuffer.append( (sal_Unicode)',' ); + aBuffer.append( ',' ); else - aBuffer.append( (sal_Unicode)';' ); + aBuffer.append( ';' ); } OString aStringData( OUStringToOString( aBuffer.makeStringAndClear(), RTL_TEXTENCODING_UTF8 ) ); diff --git a/svl/source/misc/lockfilecommon.cxx b/svl/source/misc/lockfilecommon.cxx index 3f13e35aad7c..e0f3f89d0325 100644 --- a/svl/source/misc/lockfilecommon.cxx +++ b/svl/source/misc/lockfilecommon.cxx @@ -176,7 +176,7 @@ OUString LockFileCommon::EscapeCharacters( const OUString& aSource ) for ( sal_Int32 nInd = 0; nInd < aSource.getLength() && pStr[nInd] != 0; nInd++ ) { if ( pStr[nInd] == '\\' || pStr[nInd] == ';' || pStr[nInd] == ',' ) - aBuffer.append( (sal_Unicode)'\\' ); + aBuffer.append( '\\' ); aBuffer.append( pStr[nInd] ); } diff --git a/svl/source/misc/sharecontrolfile.cxx b/svl/source/misc/sharecontrolfile.cxx index 62e413a8973a..c1e69060fc0d 100644 --- a/svl/source/misc/sharecontrolfile.cxx +++ b/svl/source/misc/sharecontrolfile.cxx @@ -215,9 +215,9 @@ void ShareControlFile::SetUsersDataAndStore( const uno::Sequence< uno::Sequence< { aBuffer.append( EscapeCharacters( aUsersData[nInd][nEntryInd] ) ); if ( nEntryInd < SHARED_ENTRYSIZE - 1 ) - aBuffer.append( (sal_Unicode)',' ); + aBuffer.append( ',' ); else - aBuffer.append( (sal_Unicode)';' ); + aBuffer.append( ';' ); } } diff --git a/svl/source/misc/urihelper.cxx b/svl/source/misc/urihelper.cxx index d2c1783f9fe0..c20d4766ad9b 100644 --- a/svl/source/misc/urihelper.cxx +++ b/svl/source/misc/urihelper.cxx @@ -203,7 +203,7 @@ OUString normalize( return uriReference; } OUStringBuffer head(ref->getScheme()); - head.append(static_cast< sal_Unicode >(':')); + head.append(':'); if (ref->hasAuthority()) { head.append("//"); head.append(ref->getAuthority()); @@ -211,7 +211,7 @@ OUString normalize( for (sal_Int32 i = count - 1; i > 0; --i) { OUStringBuffer buf(head); for (sal_Int32 j = 0; j < i; ++j) { - buf.append(static_cast< sal_Unicode >('/')); + buf.append('/'); buf.append(ref->getPathSegment(j)); } normalized = buf.makeStringAndClear(); @@ -228,7 +228,7 @@ OUString normalize( // normalizePrefix may have added or removed a final slash: if (preCount != i) { if (preCount == i - 1) { - buf.append(static_cast< sal_Unicode >('/')); + buf.append('/'); } else if (preCount - 1 == i && !buf.isEmpty() && buf[buf.getLength() - 1] == '/') { @@ -239,15 +239,15 @@ OUString normalize( } } for (sal_Int32 j = i; j < count; ++j) { - buf.append(static_cast< sal_Unicode >('/')); + buf.append('/'); buf.append(ref->getPathSegment(j)); } if (ref->hasQuery()) { - buf.append(static_cast< sal_Unicode >('?')); + buf.append'?'); buf.append(ref->getQuery()); } if (ref->hasFragment()) { - buf.append(static_cast< sal_Unicode >('#')); + buf.append('#'); buf.append(ref->getFragment()); } return buf.makeStringAndClear(); diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx index 3726c331cd71..6119ca2c3a8f 100644 --- a/svl/source/numbers/zforfind.cxx +++ b/svl/source/numbers/zforfind.cxx @@ -3482,7 +3482,7 @@ bool ImpSvNumberInputScan::IsNumberFormat( const OUString& rString, // s } if ( nDecPos == 2 && k < nAnzNums ) // . somewhere { - sResString.append((sal_Unicode)'.'); + sResString.append('.'); sal_uInt16 nStop = (eScannedType == NUMBERFORMAT_SCIENTIFIC ? nAnzNums-1 : nAnzNums); for ( ; k < nStop; k++) @@ -3497,10 +3497,10 @@ bool ImpSvNumberInputScan::IsNumberFormat( const OUString& rString, // s } else { // append exponent - sResString.append((sal_Unicode)'E'); + sResString.append('E'); if ( nESign == -1 ) { - sResString.append((sal_Unicode)'-'); + sResString.append('-'); } sResString.append(sStrArray[nNums[nAnzNums-1]]); rtl_math_ConversionStatus eStatus; |