diff options
author | Yukio Siraichi <yukio.siraichi@gmail.com> | 2020-03-13 15:41:40 +0900 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-03-14 09:19:00 +0100 |
commit | 3bf3face224a7e12ba95888821a0ac21525af22c (patch) | |
tree | 93908386dd614404e46898ae16ee179549a1a0f9 /xmloff | |
parent | 8f8b64cad377c6d767cdf291fd00225658bd02c5 (diff) |
tdf#130975 replace `rtl::math::isNan` with `std::isnan`.
Change-Id: I5d53e6369d35093445b2efd8936bbf8c6775ff47
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90451
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/chart/SchXMLExport.cxx | 6 | ||||
-rw-r--r-- | xmloff/source/draw/ximp3dscene.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx index 7b3884933e1c..dd56e8fc658e 100644 --- a/xmloff/source/chart/SchXMLExport.cxx +++ b/xmloff/source/chart/SchXMLExport.cxx @@ -663,7 +663,7 @@ uno::Sequence< OUString > lcl_DataSequenceToStringSequence( { //lcl_clearIfNoValuesButTextIsContained - replace by indices if the values are not appropriate bool bHasValue = std::any_of(aValuesSequence.begin(), aValuesSequence.end(), - [](double fValue) { return !::rtl::math::isNan( fValue ); }); + [](double fValue) { return !std::isnan( fValue ); }); if(!bHasValue) { //no double value is contained @@ -2491,7 +2491,7 @@ namespace if( xNumericalDataSequence.is() ) { Sequence< double > aDoubles( xNumericalDataSequence->getNumericalData() ); - if (std::any_of(aDoubles.begin(), aDoubles.end(), [](double fDouble) { return !::rtl::math::isNan( fDouble ); })) + if (std::any_of(aDoubles.begin(), aDoubles.end(), [](double fDouble) { return !std::isnan( fDouble ); })) return false;//have double value } else @@ -2499,7 +2499,7 @@ namespace aData = xDataSequence->getData(); double fDouble = 0.0; bool bHaveDouble = std::any_of(aData.begin(), aData.end(), - [&fDouble](const uno::Any& rData) { return (rData >>= fDouble) && !::rtl::math::isNan( fDouble ); }); + [&fDouble](const uno::Any& rData) { return (rData >>= fDouble) && !std::isnan( fDouble ); }); if (bHaveDouble) return false;//have double value } diff --git a/xmloff/source/draw/ximp3dscene.cxx b/xmloff/source/draw/ximp3dscene.cxx index 2d9c1b479d38..5fe0674c429a 100644 --- a/xmloff/source/draw/ximp3dscene.cxx +++ b/xmloff/source/draw/ximp3dscene.cxx @@ -69,7 +69,7 @@ SdXML3DLightContext::SdXML3DLightContext( { ::basegfx::B3DVector aVal; SvXMLUnitConverter::convertB3DVector(aVal, sValue); - if (!rtl::math::isNan(aVal.getX()) && !rtl::math::isNan(aVal.getY()) && !rtl::math::isNan(aVal.getZ())) + if (!std::isnan(aVal.getX()) && !std::isnan(aVal.getY()) && !std::isnan(aVal.getZ())) { maDirection = aVal; } |