You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ms...@apache.org on 2023/01/14 15:34:04 UTC
[openoffice] branch AOO42X updated: rtl's round function is in the namespace ::rtl::math.
This is an automated email from the ASF dual-hosted git repository.
mseidel pushed a commit to branch AOO42X
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/AOO42X by this push:
new 3a12c6d03b rtl's round function is in the namespace ::rtl::math.
3a12c6d03b is described below
commit 3a12c6d03bd10c0ffb262671b9562060f9a7faf2
Author: Damjan Jovanovic <da...@apache.org>
AuthorDate: Sat Jan 14 16:55:54 2023 +0200
rtl's round function is in the namespace ::rtl::math.
Patch by: me
(cherry picked from commit 01172de606a5490b5897365ac5c6e4c9140390bb)
---
main/oox/source/helper/datetimehelper.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main/oox/source/helper/datetimehelper.cxx b/main/oox/source/helper/datetimehelper.cxx
index e220a03540..1fcdd8074c 100644
--- a/main/oox/source/helper/datetimehelper.cxx
+++ b/main/oox/source/helper/datetimehelper.cxx
@@ -46,7 +46,7 @@ bool parseISO8601DateTime( OUString &aValue, DateTime &dateTime )
dateTime.Minutes = static_cast< sal_uInt16 >( aValue.copy( 14, 2 ).toInt32() );
double seconds = aValue.copy( 17 ).toDouble();
dateTime.Seconds = static_cast< sal_uInt16 >( floor( seconds ) );
- dateTime.HundredthSeconds = static_cast< sal_uInt16 >( round ( 100 * ( seconds - floor( seconds ) ) ) );
+ dateTime.HundredthSeconds = static_cast< sal_uInt16 >( ::rtl::math::round ( 100 * ( seconds - floor( seconds ) ) ) );
}
return bValid;
}