diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-03-30 09:36:06 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-03-30 12:21:40 +0000 |
commit | da56de9ac4824eb365af20b351719395e725be39 (patch) | |
tree | f19ad159f5e12b9e62b2ee50f39016819b7a7c5c /oox/source/docprop | |
parent | 8d1a56c206e5c2ed6c331049198bb8ebc6176171 (diff) |
remove type decorations on char literals
they are only needed where type deduction fails.
left them in defines for now.
Change-Id: I7f002dd6bc7acc083c73b6c64076de6dd28d0b09
Reviewed-on: https://gerrit.libreoffice.org/35893
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'oox/source/docprop')
-rw-r--r-- | oox/source/docprop/docprophandler.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/oox/source/docprop/docprophandler.cxx b/oox/source/docprop/docprophandler.cxx index 6ff528df1e95..43fd8bc12de6 100644 --- a/oox/source/docprop/docprophandler.cxx +++ b/oox/source/docprop/docprophandler.cxx @@ -99,25 +99,25 @@ util::DateTime OOXMLDocPropHandler::GetDateTimeFromW3CDTF( const OUString& aChar { aOslDTime.Year = (sal_Int16)aChars.copy( 0, 4 ).toInt32(); - if ( nLen >= 7 && aChars[4] == (sal_Unicode)'-' ) + if ( nLen >= 7 && aChars[4] == '-' ) { aOslDTime.Month = (sal_uInt16)aChars.copy( 5, 2 ).toInt32(); - if ( nLen >= 10 && aChars[7] == (sal_Unicode)'-' ) + if ( nLen >= 10 && aChars[7] == '-' ) { aOslDTime.Day = (sal_uInt16)aChars.copy( 8, 2 ).toInt32(); - if ( nLen >= 16 && aChars[10] == (sal_Unicode)'T' && aChars[13] == (sal_Unicode)':' ) + if ( nLen >= 16 && aChars[10] == 'T' && aChars[13] == ':' ) { aOslDTime.Hours = (sal_uInt16)aChars.copy( 11, 2 ).toInt32(); aOslDTime.Minutes = (sal_uInt16)aChars.copy( 14, 2 ).toInt32(); sal_Int32 nOptTime = 0; - if ( nLen >= 19 && aChars[16] == (sal_Unicode)':' ) + if ( nLen >= 19 && aChars[16] == ':' ) { aOslDTime.Seconds = (sal_uInt16)aChars.copy( 17, 2 ).toInt32(); nOptTime += 3; - if ( nLen >= 20 && aChars[19] == (sal_Unicode)'.' ) + if ( nLen >= 20 && aChars[19] == '.' ) { nOptTime += 1; sal_Int32 digitPos = 20; @@ -158,12 +158,12 @@ util::DateTime OOXMLDocPropHandler::GetDateTimeFromW3CDTF( const OUString& aChar sal_Int32 nModif = 0; if ( nLen >= 16 + nOptTime + 6 ) { - if ( ( aChars[16 + nOptTime] == (sal_Unicode)'+' || aChars[16 + nOptTime] == (sal_Unicode)'-' ) - && aChars[16 + nOptTime + 3] == (sal_Unicode)':' ) + if ( ( aChars[16 + nOptTime] == '+' || aChars[16 + nOptTime] == '-' ) + && aChars[16 + nOptTime + 3] == ':' ) { nModif = aChars.copy( 16 + nOptTime + 1, 2 ).toInt32() * 3600; nModif += aChars.copy( 16 + nOptTime + 4, 2 ).toInt32() * 60; - if ( aChars[16 + nOptTime] == (sal_Unicode)'-' ) + if ( aChars[16 + nOptTime] == '-' ) nModif *= -1; } } |