diff options
author | Yukio Siraichi <yukio.siraichi@gmail.com> | 2020-03-09 23:22:20 +0900 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-03-12 10:34:46 +0100 |
commit | 8e173a965d5684372e3fe0ee3d3599032bcb86c2 (patch) | |
tree | 7cd8282e599418b9c5cd1e3667fcba04c787b153 /scaddins | |
parent | 056ba01ee95db5dfd7df362e72bb418893c4c530 (diff) |
tdf#130977 replace `rtl::math::isFinite` with `std::isfinite`.
- make all calls look like `std::isfinite`.
- change the comments referring `rtl::math::isFinite`.
Change-Id: I0cde9ceb9f20150467b454cddde5e62003cfde1a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90234
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'scaddins')
-rw-r--r-- | scaddins/source/analysis/analysisdefs.hxx | 4 | ||||
-rw-r--r-- | scaddins/source/pricing/pricing.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scaddins/source/analysis/analysisdefs.hxx b/scaddins/source/analysis/analysisdefs.hxx index 9acef5d76108..4ee96be9ae0d 100644 --- a/scaddins/source/analysis/analysisdefs.hxx +++ b/scaddins/source/analysis/analysisdefs.hxx @@ -21,8 +21,8 @@ #define INCLUDED_SCADDINS_SOURCE_ANALYSIS_ANALYSISDEFS_HXX #define CHK_Freq ( nFreq != 1 && nFreq != 2 && nFreq != 4 ) -#define CHK_FINITE(d) if( !::rtl::math::isFinite( d ) ) throw css::lang::IllegalArgumentException() -#define RETURN_FINITE(d) if( !::rtl::math::isFinite( d ) ) throw css::lang::IllegalArgumentException(); return d; +#define CHK_FINITE(d) if( !std::isfinite( d ) ) throw css::lang::IllegalArgumentException() +#define RETURN_FINITE(d) if( !std::isfinite( d ) ) throw css::lang::IllegalArgumentException(); return d; #endif diff --git a/scaddins/source/pricing/pricing.hxx b/scaddins/source/pricing/pricing.hxx index 1ce75c1756e1..54c1e5483d7f 100644 --- a/scaddins/source/pricing/pricing.hxx +++ b/scaddins/source/pricing/pricing.hxx @@ -39,7 +39,7 @@ namespace com::sun::star::lang { class XMultiServiceFactory; } -#define RETURN_FINITE(d) if( !::rtl::math::isFinite( d ) ) throw css::lang::IllegalArgumentException(); return d; +#define RETURN_FINITE(d) if( !std::isfinite( d ) ) throw css::lang::IllegalArgumentException(); return d; namespace sca { |