[Libreoffice-commits] core.git: sal/qa
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Wed Mar 11 08:23:27 UTC 2020
sal/qa/inc/valueequal.hxx | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
New commits:
commit dde0cf9eafed91c88d9999a294ea32fe0e8aa4bc
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Wed Mar 11 08:36:56 2020 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Mar 11 09:22:55 2020 +0100
Get rid of some SAL_MATH_FINITE use
Change-Id: I850efb6215c95d356d42e19e639c578c377d1507
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90316
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/sal/qa/inc/valueequal.hxx b/sal/qa/inc/valueequal.hxx
index 0a11a2a89428..5e6d47d30f7a 100644
--- a/sal/qa/inc/valueequal.hxx
+++ b/sal/qa/inc/valueequal.hxx
@@ -22,9 +22,7 @@
#include <sal/config.h>
-#include <math.h>
-
-#include <sal/mathconf.h>
+#include <cmath>
#define PREC_float 1
#define PREC_double 2
@@ -33,7 +31,7 @@
template<class T>
bool is_equal(T x, T y, sal_Int16 _nPrec)
{
- if (!(SAL_MATH_FINITE(x) && SAL_MATH_FINITE(y))) {
+ if (!(std::isfinite(x) && std::isfinite(y))) {
return x == y;
}
More information about the Libreoffice-commits
mailing list