diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-05 19:30:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-08-05 22:11:36 +0200 |
commit | 98788274275d7c9effa2a3839469bd35d9290f1e (patch) | |
tree | 5f3c0e0b26e2aa83ae4bca1e5ebcd4a85b93f5a5 /oox/source | |
parent | 2c4401b9051ceb955de367f7d63d1e8a6038399d (diff) |
coverity#1438225 Improper use of negative value
and
coverity#1438221 Argument cannot be negative
coverity#1438213 Argument cannot be negative
coverity#1438227 Argument cannot be negative
coverity#1438223 Argument cannot be negative
coverity#1438222 Argument cannot be negative
coverity#1438215 Improper use of negative value
coverity#1438220 Improper use of negative value
coverity#1438217 Improper use of negative value
Change-Id: I398ae9901b27f6b65f03aad03638939b5880a671
Reviewed-on: https://gerrit.libreoffice.org/58626
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'oox/source')
-rw-r--r-- | oox/source/ppt/comments.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/oox/source/ppt/comments.cxx b/oox/source/ppt/comments.cxx index 34206cffa37e..468a648ea99a 100644 --- a/oox/source/ppt/comments.cxx +++ b/oox/source/ppt/comments.cxx @@ -33,11 +33,11 @@ void Comment::setDateTime (const OUString& _datetime) { OUString datetime = _datetime; aDateTime.Year = datetime.getToken(0,'-').toInt32(); - aDateTime.Month = datetime.getToken(1,'-').toInt32(); - aDateTime.Day = datetime.getToken(2,'-').toInt32(); + aDateTime.Month = datetime.getToken(1,'-').toUInt32(); + aDateTime.Day = datetime.getToken(2,'-').toUInt32(); datetime = datetime.getToken(1,'T'); - aDateTime.Hours = datetime.getToken(0,':').toInt32(); - aDateTime.Minutes = datetime.getToken(1,':').toInt32(); + aDateTime.Hours = datetime.getToken(0,':').toUInt32(); + aDateTime.Minutes = datetime.getToken(1,':').toUInt32(); double seconds = datetime.getToken(2,':').toDouble(); aDateTime.Seconds = floor(seconds); seconds -= aDateTime.Seconds; |