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 /chart2/qa | |
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 'chart2/qa')
-rw-r--r-- | chart2/qa/extras/charttest.hxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/chart2/qa/extras/charttest.hxx b/chart2/qa/extras/charttest.hxx index 0a7b00cc884e..9b162acc06e8 100644 --- a/chart2/qa/extras/charttest.hxx +++ b/chart2/qa/extras/charttest.hxx @@ -442,9 +442,6 @@ std::vector<std::vector<double> > getDataSeriesYValuesFromChartType( const Refer CPPUNIT_ASSERT(xDSCont.is()); const Sequence<uno::Reference<chart2::XDataSeries> > aDataSeriesSeq = xDSCont->getDataSeries(); - double fNan; - rtl::math::setNan(&fNan); - std::vector<std::vector<double> > aRet; for (uno::Reference<chart2::XDataSeries> const & ds : aDataSeriesSeq) { @@ -472,7 +469,7 @@ std::vector<std::vector<double> > getDataSeriesYValuesFromChartType( const Refer if (any >>= fVal) aValues.push_back(fVal); else - aValues.push_back(fNan); + aValues.push_back(std::numeric_limits<double>::quiet_NaN()); } aRet.push_back(aValues); } |