Skip to content

Commit

Permalink
Replace use of math.h with cmath
Browse files Browse the repository at this point in the history
  • 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.
4 changes: 2 additions & 2 deletions src/app/pluginmanager/qgspluginmanager.cpp
Expand Up @@ -15,7 +15,7 @@
* *
***************************************************************************/

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

#include <QApplication>
#include <QFileDialog>
Expand Down Expand Up @@ -1580,4 +1580,4 @@ void QgsPluginManager::pushMessage( const QString &text, QgsMessageBar::MessageL
void QgsPluginManager::showHelp()
{
QgsHelp::openHelp( QStringLiteral( "plugins/plugins.html" ) );
}
}
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolrotatefeature.cpp
Expand Up @@ -34,7 +34,7 @@
#include <QLabel>

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

#define PI 3.14159265

Expand Down
2 changes: 1 addition & 1 deletion src/core/layout/qgslayoututils.cpp
Expand Up @@ -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 )
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/pal/geomfunction.h
Expand Up @@ -34,7 +34,7 @@


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

namespace pal
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/georeferencer/qgsgeorefdelegates.cpp
Expand Up @@ -19,7 +19,7 @@

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

// ------------------------ QgsNonEditableDelegate ------------------------- //
QgsNonEditableDelegate::QgsNonEditableDelegate( QWidget *parent )
Expand Down
2 changes: 1 addition & 1 deletion src/providers/grass/qgis.r.in.cpp
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/providers/grass/qgis.v.in.cpp
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion src/providers/wfs/qgswfsshareddata.cpp
Expand Up @@ -13,7 +13,7 @@
* *
***************************************************************************/

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

#include "qgswfsconstants.h"
#include "qgswfsshareddata.h"
Expand Down

0 comments on commit 3400325

Please sign in to comment.