This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a commit to branch AOO41X
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit a0d24fb62526bde9fe19d203fae61e7a9f46e82c
Author: Damjan Jovanovic <[email protected]>
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;
 }

Reply via email to