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/02/08 12:33:15 UTC

[openoffice] branch AOO41X updated (419755b056 -> a0d24fb625)

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

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


    from 419755b056 Add a "Referer" to toolbars
     new ab427ea754 Windows is missing the round() function, try include <math.h>.
     new b253e304d3 Use our own round() function declared in rtl's math.hxx, instead of the system round() function only available in C99 compilers.
     new a0d24fb625 rtl's round function is in the namespace ::rtl::math.

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 main/oox/source/helper/datetimehelper.cxx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


[openoffice] 03/03: rtl's round function is in the namespace ::rtl::math.

Posted by ms...@apache.org.
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 <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;
 }


[openoffice] 02/03: Use our own round() function declared in rtl's math.hxx, instead of the system round() function only available in C99 compilers.

Posted by ms...@apache.org.
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 b253e304d3c7a14ff6792be55d7321fe504027ec
Author: Damjan Jovanovic <da...@apache.org>
AuthorDate: Thu Jan 12 17:25:21 2023 +0200

    Use our own round() function declared in rtl's math.hxx, instead of the system
    round() function only available in C99 compilers.
    
    Patch by: me
    
    (cherry picked from commit 669616fc485e35d4547ab101a0da01ce61322f47)
---
 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 f36c724062..e220a03540 100644
--- a/main/oox/source/helper/datetimehelper.cxx
+++ b/main/oox/source/helper/datetimehelper.cxx
@@ -21,7 +21,7 @@
 
 #include "oox/helper/datetimehelper.hxx"
 
-#include <math.h>
+#include <rtl/math.hxx>
 
 namespace oox {
 


[openoffice] 01/03: Windows is missing the round() function, try include .

Posted by ms...@apache.org.
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 ab427ea754a8899894ca9799ce963ccf2fe65d99
Author: Damjan Jovanovic <da...@apache.org>
AuthorDate: Thu Jan 12 03:27:35 2023 +0200

    Windows is missing the round() function, try include <math.h>.
    
    Patch by: me
    
    (cherry picked from commit a2fc620dde92e6d35133f9ad89c5bd17ae686d7b)
---
 main/oox/source/helper/datetimehelper.cxx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/main/oox/source/helper/datetimehelper.cxx b/main/oox/source/helper/datetimehelper.cxx
index cf44aaa24a..f36c724062 100644
--- a/main/oox/source/helper/datetimehelper.cxx
+++ b/main/oox/source/helper/datetimehelper.cxx
@@ -21,6 +21,8 @@
 
 #include "oox/helper/datetimehelper.hxx"
 
+#include <math.h>
+
 namespace oox {
 
 // ============================================================================