summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorBaiXiaochun <bai.xiaochun.mofan@protonmail.com>2021-06-29 17:38:29 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2021-06-30 09:52:45 +0200
commit7838efe4b703945ccde963f8506c8c7744e04e6e (patch)
tree5b51faa8c5bd0799aafb1af702126f4b0feb852b /svtools
parente9dc82b761a71369c4c49ae6d5fd8892f999c77a (diff)
Purge out rtl::math::setNan
Change-Id: If8794c105e279afd4437517d3e61f2f900eb6490 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118123 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/table/cellvalueconversion.cxx14
1 files changed, 5 insertions, 9 deletions
diff --git a/svtools/source/table/cellvalueconversion.cxx b/svtools/source/table/cellvalueconversion.cxx
index e209fe953104..76a0a1395ffd 100644
--- a/svtools/source/table/cellvalueconversion.cxx
+++ b/svtools/source/table/cellvalueconversion.cxx
@@ -27,7 +27,6 @@
#include <com/sun/star/util/DateTime.hpp>
#include <com/sun/star/util/XNumberFormatTypes.hpp>
#include <com/sun/star/util/NumberFormat.hpp>
-#include <rtl/math.hxx>
#include <sal/log.hxx>
#include <tools/date.hxx>
#include <tools/time.hxx>
@@ -37,6 +36,7 @@
#include <i18nlangtag/languagetag.hxx>
#include <comphelper/processfactory.hxx>
+#include <limits>
#include <memory>
#include <unordered_map>
@@ -152,8 +152,7 @@ namespace svt
virtual double convertToDouble( Any const & i_value ) const override
{
- double returnValue(0);
- ::rtl::math::setNan( &returnValue );
+ double returnValue = std::numeric_limits<double>::quiet_NaN();
OSL_VERIFY( i_value >>= returnValue );
return returnValue;
}
@@ -210,8 +209,7 @@ namespace svt
virtual double convertToDouble( Any const & i_value ) const override
{
- double returnValue(0);
- ::rtl::math::setNan( &returnValue );
+ double returnValue = std::numeric_limits<double>::quiet_NaN();
// extract actual UNO value
DateTime aDateTimeValue;
@@ -242,8 +240,7 @@ namespace svt
virtual double convertToDouble( Any const & i_value ) const override
{
- double returnValue(0);
- ::rtl::math::setNan( &returnValue );
+ double returnValue = std::numeric_limits<double>::quiet_NaN();
// extract
css::util::Date aDateValue;
@@ -270,8 +267,7 @@ namespace svt
virtual double convertToDouble( Any const & i_value ) const override
{
- double returnValue(0);
- ::rtl::math::setNan( &returnValue );
+ double returnValue = std::numeric_limits<double>::quiet_NaN();
// extract
css::util::Time aTimeValue;