summaryrefslogtreecommitdiff
path: root/sc/qa/unit/ucalc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa/unit/ucalc.cxx')
-rw-r--r--sc/qa/unit/ucalc.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 9b6f41a3e284..964247b9fe7f 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -1851,8 +1851,8 @@ void Test::testMatrix()
CPPUNIT_ASSERT_EQUAL(SAL_N_ELEMENTS(pChecks), aDoubles.size());
for (size_t i = 0, n = aDoubles.size(); i < n; ++i)
{
- if (rtl::math::isNan(pChecks[i]))
- CPPUNIT_ASSERT_MESSAGE("NaN is expected, but it's not.", rtl::math::isNan(aDoubles[i]));
+ if (std::isnan(pChecks[i]))
+ CPPUNIT_ASSERT_MESSAGE("NaN is expected, but it's not.", std::isnan(aDoubles[i]));
else
CPPUNIT_ASSERT_EQUAL(pChecks[i], aDoubles[i]);
}
@@ -1867,8 +1867,8 @@ void Test::testMatrix()
CPPUNIT_ASSERT_EQUAL(SAL_N_ELEMENTS(pChecks), aDoubles.size());
for (size_t i = 0, n = aDoubles.size(); i < n; ++i)
{
- if (rtl::math::isNan(pChecks[i]))
- CPPUNIT_ASSERT_MESSAGE("NaN is expected, but it's not.", rtl::math::isNan(aDoubles[i]));
+ if (std::isnan(pChecks[i]))
+ CPPUNIT_ASSERT_MESSAGE("NaN is expected, but it's not.", std::isnan(aDoubles[i]));
else
CPPUNIT_ASSERT_EQUAL(pChecks[i], aDoubles[i]);
}