[Libreoffice-commits] core.git: 2 commits - chart2/CppunitTest_chart2_export.mk dbaccess/CppunitTest_dbaccess_dialog_save.mk dbaccess/CppunitTest_dbaccess_empty_stdlib_save.mk sc/CppunitTest_sc_bugfix_test.mk sc/source

Caolán McNamara caolanm at redhat.com
Wed Jul 27 20:34:04 UTC 2016


 chart2/CppunitTest_chart2_export.mk                |    1 +
 dbaccess/CppunitTest_dbaccess_dialog_save.mk       |    1 +
 dbaccess/CppunitTest_dbaccess_empty_stdlib_save.mk |    1 +
 sc/CppunitTest_sc_bugfix_test.mk                   |    1 +
 sc/source/core/tool/interpr1.cxx                   |    4 ++--
 5 files changed, 6 insertions(+), 2 deletions(-)

New commits:
commit b32d3f24bb1e1b6e2f24dd4ad60273aadc607cfc
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Jul 27 21:33:20 2016 +0100

    add uui component to some other places
    
    Change-Id: Ia1e449f8f52e7d353944b8e80f9fc586f1eab2f7

diff --git a/chart2/CppunitTest_chart2_export.mk b/chart2/CppunitTest_chart2_export.mk
index 50780b1..931edeb 100644
--- a/chart2/CppunitTest_chart2_export.mk
+++ b/chart2/CppunitTest_chart2_export.mk
@@ -122,6 +122,7 @@ $(eval $(call gb_CppunitTest_use_components,chart2_export,\
     unotools/util/utl \
     unoxml/source/rdf/unordf \
     unoxml/source/service/unoxml \
+    uui/util/uui \
     writerfilter/util/writerfilter \
     xmloff/util/xo \
     xmlscript/util/xmlscript \
diff --git a/dbaccess/CppunitTest_dbaccess_dialog_save.mk b/dbaccess/CppunitTest_dbaccess_dialog_save.mk
index 1b4cf73..19d7767 100644
--- a/dbaccess/CppunitTest_dbaccess_dialog_save.mk
+++ b/dbaccess/CppunitTest_dbaccess_dialog_save.mk
@@ -98,6 +98,7 @@ $(eval $(call gb_CppunitTest_use_components,dbaccess_dialog_save,\
     unotools/util/utl \
     unoxml/source/rdf/unordf \
     unoxml/source/service/unoxml \
+    uui/util/uui \
     xmloff/util/xo \
 ))
 
diff --git a/dbaccess/CppunitTest_dbaccess_empty_stdlib_save.mk b/dbaccess/CppunitTest_dbaccess_empty_stdlib_save.mk
index 470726f..ffb2937 100644
--- a/dbaccess/CppunitTest_dbaccess_empty_stdlib_save.mk
+++ b/dbaccess/CppunitTest_dbaccess_empty_stdlib_save.mk
@@ -98,6 +98,7 @@ $(eval $(call gb_CppunitTest_use_components,dbaccess_empty_stdlib_save,\
     unotools/util/utl \
     unoxml/source/rdf/unordf \
     unoxml/source/service/unoxml \
+    uui/util/uui \
     xmloff/util/xo \
 ))
 
diff --git a/sc/CppunitTest_sc_bugfix_test.mk b/sc/CppunitTest_sc_bugfix_test.mk
index 5cab2c0..8d07cf1 100644
--- a/sc/CppunitTest_sc_bugfix_test.mk
+++ b/sc/CppunitTest_sc_bugfix_test.mk
@@ -101,6 +101,7 @@ $(eval $(call gb_CppunitTest_use_components,sc_bugfix_test,\
     unotools/util/utl \
     unoxml/source/rdf/unordf \
     unoxml/source/service/unoxml \
+    uui/util/uui \
     xmloff/util/xo \
     xmlsecurity/util/xmlsecurity \
     xmlsecurity/util/xsec_fw \
commit ebe04c075649c677b55941e3b4e57fbca150b5db
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Jul 27 21:28:59 2016 +0100

    use div() instead of /0 to content ubsan
    
    for the same reason as...
    
    commit fb2c146752074b132d665e40343a08dcb2e6672e
    Author: Eike Rathke <erack at redhat.com>
    Date:   Mon Jul 25 13:32:17 2016 +0200
    
        use div() instead of /0 to content ubsan
    
        While we do handle double floating point division by 0 at least on
        IEEE754 systems, ubsan builds mock about.
    
    Change-Id: Id2e34686b053707c83ca535689b693d80b606533

diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index dbbc55e..37afb35 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -1695,7 +1695,7 @@ void ScInterpreter::ScTan()
 
 void ScInterpreter::ScCot()
 {
-    PushDouble( div( 1.0, ::rtl::math::tan(GetDouble())));
+    PushDouble(div(1.0, ::rtl::math::tan(GetDouble())));
 }
 
 void ScInterpreter::ScArcSin()
@@ -1735,7 +1735,7 @@ void ScInterpreter::ScTanHyp()
 
 void ScInterpreter::ScCotHyp()
 {
-    PushDouble(1.0 / tanh(GetDouble()));
+    PushDouble(div(1.0, tanh(GetDouble())));
 }
 
 void ScInterpreter::ScArcSinHyp()


More information about the Libreoffice-commits mailing list