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 /sax/source/tools | |
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 'sax/source/tools')
-rw-r--r-- | sax/source/tools/converter.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx index 62e5b4838971..8a0d82873399 100644 --- a/sax/source/tools/converter.cxx +++ b/sax/source/tools/converter.cxx @@ -1243,22 +1243,22 @@ static void convertTime( const com::sun::star::util::DateTime& i_rDateTime) { if (i_rDateTime.Hours < 10) { - i_rBuffer.append(sal_Unicode('0')); + i_rBuffer.append('0'); } i_rBuffer.append( static_cast<sal_Int32>(i_rDateTime.Hours) ) - .append(sal_Unicode(':')); + .append(':'); if (i_rDateTime.Minutes < 10) { - i_rBuffer.append(sal_Unicode('0')); + i_rBuffer.append('0'); } i_rBuffer.append( static_cast<sal_Int32>(i_rDateTime.Minutes) ) - .append(sal_Unicode(':')); + .append(':'); if (i_rDateTime.Seconds < 10) { - i_rBuffer.append(sal_Unicode('0')); + i_rBuffer.append('0'); } i_rBuffer.append( static_cast<sal_Int32>(i_rDateTime.Seconds) ); if (i_rDateTime.NanoSeconds > 0) { OSL_ENSURE(i_rDateTime.NanoSeconds < 1000000000,"NanoSeconds cannot be more than 999 999 999"); - i_rBuffer.append(sal_Unicode('.')); + i_rBuffer.append('.'); std::ostringstream ostr; ostr.fill('0'); ostr.width(9); @@ -1339,7 +1339,7 @@ void Converter::convertDateTime( i_rDateTime.Hours != 0 || i_bAddTimeIf0AM ) { - i_rBuffer.append(sal_Unicode('T')); + i_rBuffer.append('T'); convertTime(i_rBuffer, i_rDateTime); } |