diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-10-05 21:38:08 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-10-05 21:38:08 +0200 |
commit | 2cdc070555e717c99a287b90d8b9ffbf9e69b6cd (patch) | |
tree | 2db20e5f73120d8be786bb150910087a2f7dd2d1 /qfunctionconfigurator | |
parent | 1956932bbf0f26c2bdbf89abfe44cc3e00ff7e7a (diff) |
nix cmath
Diffstat (limited to 'qfunctionconfigurator')
-rw-r--r-- | qfunctionconfigurator/functionconfig.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qfunctionconfigurator/functionconfig.cpp b/qfunctionconfigurator/functionconfig.cpp index 6db3b55f..4c52b6eb 100644 --- a/qfunctionconfigurator/functionconfig.cpp +++ b/qfunctionconfigurator/functionconfig.cpp @@ -15,7 +15,6 @@ #include <QtAlgorithms> #include <QSettings> #include <QPixmap> -#include <cmath> #include <algorithm> void Map::setTrackingActive(bool blnActive) @@ -49,7 +48,7 @@ bool Map::getLastPoint(QPointF& point ) { float Map::getValueInternal(int x) { float sign = x < 0 ? -1 : 1; - x = fabs(x); + x = std::abs((double) x); float ret; int sz = data.size(); if (sz == 0) |