summaryrefslogtreecommitdiff
path: root/sc/qa
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 /sc/qa
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 'sc/qa')
-rw-r--r--sc/qa/unit/ucalc.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 9a7a3e34d623..75e96eba3c70 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -90,6 +90,7 @@
#include <sfx2/sfxsids.hrc>
#include <iostream>
+#include <limits>
#include <memory>
#include <vector>
@@ -2143,8 +2144,7 @@ void Test::testMatrix()
pMat->PutDouble(2.3, 2, 1);
pMat->PutDouble(-20, 2, 2);
- double fNaN;
- rtl::math::setNan(&fNaN);
+ static const double fNaN = std::numeric_limits<double>::quiet_NaN();
std::vector<double> aDoubles;
pMat->GetDoubleArray(aDoubles);