diff --git a/src/common/QskScaleEngine.cpp b/src/common/QskScaleEngine.cpp index 0fa7dc7f..bac3fff6 100644 --- a/src/common/QskScaleEngine.cpp +++ b/src/common/QskScaleEngine.cpp @@ -3,7 +3,7 @@ * This file may be used under the terms of the QSkinny License, Version 1.0 *****************************************************************************/ -// code cpoied from Qwt - with permission from the author ( = myself ) +// code cpopied from Qwt - with permission from the author ( = myself ) #include "QskScaleEngine.h" #include "QskFunctions.h" @@ -23,7 +23,7 @@ namespace inline int fuzzyCompare( double value1, double value2, double intervalSize ) { - const double eps = qAbs( 1.0e-6 * intervalSize ); + const double eps = std::abs( 1.0e-6 * intervalSize ); if ( value2 - value1 > eps ) return -1; diff --git a/src/common/QskScaleEngine.h b/src/common/QskScaleEngine.h index 2bc26f1d..2111816f 100644 --- a/src/common/QskScaleEngine.h +++ b/src/common/QskScaleEngine.h @@ -35,8 +35,8 @@ class QSK_EXPORT QskScaleEngine void setAttributes( Attributes ); Attributes attributes() const; - QskScaleTickmarks divideScale(qreal x1, qreal x2, - int maxMajorSteps, int maxMinorSteps, qreal stepSize = 0.0) const; + QskScaleTickmarks divideScale( qreal x1, qreal x2, + int maxMajorSteps, int maxMinorSteps, qreal stepSize = 0.0 ) const; void autoScale( int maxNumSteps, qreal& x1, qreal& x2, qreal& stepSize ) const;