diff options
author | Yukio Siraichi <yukio.siraichi@gmail.com> | 2020-03-12 19:45:07 +0900 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-03-12 20:06:13 +0100 |
commit | c95529ed8eee120c109cd6fc7c94f615606586b0 (patch) | |
tree | aedfdc7ee4ac490d52d22b672b536bda4a322f00 /scaddins | |
parent | 26b84cd8c5d1b0ab8c4cb765bbbaecf3c21e4ed2 (diff) |
tdf#130976 replace `rtl::math::isInf` with `std::inf`.
Change-Id: Id0f0e07b324230d2d69cbf4ab07b0fff5b24474d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90377
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'scaddins')
-rw-r--r-- | scaddins/source/analysis/financial.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scaddins/source/analysis/financial.cxx b/scaddins/source/analysis/financial.cxx index 63ad2085b349..c32f61ed5700 100644 --- a/scaddins/source/analysis/financial.cxx +++ b/scaddins/source/analysis/financial.cxx @@ -561,8 +561,8 @@ double SAL_CALL AnalysisAddIn::getXirr( } while( bContLoop && (++nIter < nMaxIter) ); nIter = 0; - if ( ::rtl::math::isNan(fResultRate) || ::rtl::math::isInf(fResultRate) - ||::rtl::math::isNan(fResultValue) || ::rtl::math::isInf(fResultValue)) + if ( ::rtl::math::isNan(fResultRate) || std::isinf(fResultRate) + ||::rtl::math::isNan(fResultValue) || std::isinf(fResultValue)) bContLoop = true; ++nIterScan; |