Skip to content
Permalink
Browse files
Replace use of math.h with cmath
  • Loading branch information
nyalldawson committed Aug 24, 2017
1 parent c19418c commit 3400325
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
@@ -15,7 +15,7 @@
* *
***************************************************************************/

#include <math.h>
#include <cmath>

#include <QApplication>
#include <QFileDialog>
@@ -1580,4 +1580,4 @@ void QgsPluginManager::pushMessage( const QString &text, QgsMessageBar::MessageL
void QgsPluginManager::showHelp()
{
QgsHelp::openHelp( QStringLiteral( "plugins/plugins.html" ) );
}
}
@@ -34,7 +34,7 @@
#include <QLabel>

#include <limits>
#include <math.h>
#include <cmath>

#define PI 3.14159265

@@ -20,7 +20,7 @@
#include "qgsrendercontext.h"
#include "qgslayoutitemmap.h"
#include <QPainter>
#include <math.h>
#include <cmath>

double QgsLayoutUtils::normalizedAngle( const double angle, const bool allowNegative )
{
@@ -34,7 +34,7 @@


#include "qgis_core.h"
#include "math.h"
#include <cmath>
#include "qgsgeos.h"

namespace pal
@@ -19,7 +19,7 @@

#include "qgsgeorefvalidators.h"
#include "qgsgeorefdelegates.h"
#include <math.h>
#include <cmath>

// ------------------------ QgsNonEditableDelegate ------------------------- //
QgsNonEditableDelegate::QgsNonEditableDelegate( QWidget *parent )
@@ -18,7 +18,7 @@ extern "C"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <cmath>
#ifdef WIN32
#include <fcntl.h>
#include <io.h>
@@ -18,7 +18,7 @@ extern "C"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <cmath>
#include <assert.h>
#ifdef WIN32
#include <fcntl.h>
@@ -13,7 +13,7 @@
* *
***************************************************************************/

#include <math.h> // M_PI
#include <cmath> // M_PI

#include "qgswfsconstants.h"
#include "qgswfsshareddata.h"

0 comments on commit 3400325

Please sign in to comment.