diff options
author | BaiXiaochun <bai.xiaochun.mofan@protonmail.com> | 2021-06-29 17:38:29 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-06-30 09:52:45 +0200 |
commit | 7838efe4b703945ccde963f8506c8c7744e04e6e (patch) | |
tree | 5b51faa8c5bd0799aafb1af702126f4b0feb852b /sc/inc | |
parent | e9dc82b761a71369c4c49ae6d5fd8892f999c77a (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 'sc/inc')
-rw-r--r-- | sc/inc/PivotTableDataSequence.hxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sc/inc/PivotTableDataSequence.hxx b/sc/inc/PivotTableDataSequence.hxx index 09d43f09898f..43128b689b3c 100644 --- a/sc/inc/PivotTableDataSequence.hxx +++ b/sc/inc/PivotTableDataSequence.hxx @@ -22,7 +22,8 @@ #include <svl/lstner.hxx> #include <svl/itemprop.hxx> #include <cppuhelper/implbase.hxx> -#include <rtl/math.hxx> + +#include <limits> class ScDocument; @@ -44,12 +45,11 @@ struct ValueAndFormat sal_uInt32 m_nNumberFormat; explicit ValueAndFormat() - : m_fValue(0.0) + : m_fValue(std::numeric_limits<double>::quiet_NaN()) , m_aString() , m_eType(ValueType::Empty) , m_nNumberFormat(0) { - rtl::math::setNan(&m_fValue); } explicit ValueAndFormat(double fValue, sal_uInt32 nNumberFormat) @@ -60,12 +60,11 @@ struct ValueAndFormat {} explicit ValueAndFormat(OUString const & rString) - : m_fValue(0.0) + : m_fValue(std::numeric_limits<double>::quiet_NaN()) , m_aString(rString) , m_eType(ValueType::String) , m_nNumberFormat(0) { - rtl::math::setNan(&m_fValue); } }; |