Use Qt abstractions of cmath functions.
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
|
||||
|
||||
#include "Constants.h"
|
||||
#include <cmath>
|
||||
#include <QtMath>
|
||||
|
||||
|
||||
namespace glabels
|
||||
@@ -195,7 +195,7 @@ namespace glabels
|
||||
|
||||
inline Distance fabs( const Distance& d )
|
||||
{
|
||||
return Distance::pt( std::fabs( d.mDPts ) );
|
||||
return Distance::pt( qFabs( d.mDPts ) );
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
|
||||
#include "FrameCd.h"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#include "StrUtil.h"
|
||||
#include "privateConstants.h"
|
||||
#include <QtDebug>
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
|
||||
#include "FrameEllipse.h"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#include "StrUtil.h"
|
||||
#include "privateConstants.h"
|
||||
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
|
||||
#include "FrameRect.h"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#include "StrUtil.h"
|
||||
#include "privateConstants.h"
|
||||
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
|
||||
#include "FrameRound.h"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
#include "StrUtil.h"
|
||||
#include "privateConstants.h"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "StrUtil.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <QtMath>
|
||||
|
||||
|
||||
namespace
|
||||
@@ -49,7 +49,7 @@ namespace glabels
|
||||
for ( i=0; denom[i] != 0.0; i++ )
|
||||
{
|
||||
product = x * denom[i];
|
||||
remainder = fabs(product - ((int)(product+0.5)));
|
||||
remainder = qFabs(product - ((int)(product+0.5)));
|
||||
if ( remainder < FRAC_EPSILON ) break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user