summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-01-14 11:55:35 +0100
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-02-04 15:31:41 +0000
commite1c931582903f13e5c17627c64ab6b06bdde4bdd (patch)
treea4f4f2301c09422964a95ceee63c14c489d38f05 /src
parent40ebda3efbcf00c3393cb70c9eee203c68a57311 (diff)
Remove unnecessary math.h and limits.h includes
Change-Id: I28c898f869ed3f03b08ff55f2972a38667c755ad Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/tools/qrect.cpp2
-rw-r--r--src/gui/image/qimage.cpp1
-rw-r--r--src/gui/painting/qcolor.cpp1
-rw-r--r--src/gui/painting/qcosmeticstroker.cpp1
-rw-r--r--src/gui/painting/qpathsimplifier.cpp2
-rw-r--r--src/gui/text/qfontmetrics.cpp3
-rw-r--r--src/gui/util/qgridlayoutengine.cpp2
-rw-r--r--src/plugins/printsupport/cups/qcupsprintengine.cpp2
-rw-r--r--src/printsupport/dialogs/qprintpreviewdialog.cpp2
-rw-r--r--src/printsupport/kernel/qprintengine_pdf.cpp4
-rw-r--r--src/widgets/graphicsview/qgraphicsitem.cpp2
-rw-r--r--src/widgets/widgets/qdatetimeedit.cpp1
-rw-r--r--src/widgets/widgets/qspinbox.cpp1
13 files changed, 0 insertions, 24 deletions
diff --git a/src/corelib/tools/qrect.cpp b/src/corelib/tools/qrect.cpp
index 25e86d9160..ed53db0838 100644
--- a/src/corelib/tools/qrect.cpp
+++ b/src/corelib/tools/qrect.cpp
@@ -36,8 +36,6 @@
#include "qdebug.h"
#include "qmath.h"
-#include <math.h>
-
QT_BEGIN_NAMESPACE
/*!
diff --git a/src/gui/image/qimage.cpp b/src/gui/image/qimage.cpp
index 38fa2df906..ade30b9d77 100644
--- a/src/gui/image/qimage.cpp
+++ b/src/gui/image/qimage.cpp
@@ -47,7 +47,6 @@
#include <ctype.h>
#include <stdlib.h>
#include <limits.h>
-#include <math.h>
#include <qpa/qplatformpixmap.h>
#include <private/qdrawhelper_p.h>
#include <private/qmemrotate_p.h>
diff --git a/src/gui/painting/qcolor.cpp b/src/gui/painting/qcolor.cpp
index 77fa989351..2c95750a7f 100644
--- a/src/gui/painting/qcolor.cpp
+++ b/src/gui/painting/qcolor.cpp
@@ -38,7 +38,6 @@
#include "qvariant.h"
#include "qdebug.h"
-#include <math.h>
#include <stdio.h>
#include <limits.h>
diff --git a/src/gui/painting/qcosmeticstroker.cpp b/src/gui/painting/qcosmeticstroker.cpp
index d179002127..3c73e5c971 100644
--- a/src/gui/painting/qcosmeticstroker.cpp
+++ b/src/gui/painting/qcosmeticstroker.cpp
@@ -34,7 +34,6 @@
#include "qcosmeticstroker_p.h"
#include "private/qpainterpath_p.h"
#include <qdebug.h>
-#include <math.h>
QT_BEGIN_NAMESPACE
diff --git a/src/gui/painting/qpathsimplifier.cpp b/src/gui/painting/qpathsimplifier.cpp
index c2d95c28d2..d1390f87f9 100644
--- a/src/gui/painting/qpathsimplifier.cpp
+++ b/src/gui/painting/qpathsimplifier.cpp
@@ -38,8 +38,6 @@
#include <QtCore/qpoint.h>
#include <QtCore/qalgorithms.h>
-#include <math.h>
-
#include <private/qopengl_p.h>
#include <private/qrbtree_p.h>
diff --git a/src/gui/text/qfontmetrics.cpp b/src/gui/text/qfontmetrics.cpp
index e010dd62ae..d1477622c0 100644
--- a/src/gui/text/qfontmetrics.cpp
+++ b/src/gui/text/qfontmetrics.cpp
@@ -38,9 +38,6 @@
#include "qfont_p.h"
#include "qfontengine_p.h"
-#include <math.h>
-
-
QT_BEGIN_NAMESPACE
diff --git a/src/gui/util/qgridlayoutengine.cpp b/src/gui/util/qgridlayoutengine.cpp
index b58096a231..861b713efd 100644
--- a/src/gui/util/qgridlayoutengine.cpp
+++ b/src/gui/util/qgridlayoutengine.cpp
@@ -35,8 +35,6 @@
#ifndef QT_NO_GRAPHICSVIEW
-#include <math.h>
-
#include "qgridlayoutengine_p.h"
#include "qvarlengtharray.h"
diff --git a/src/plugins/printsupport/cups/qcupsprintengine.cpp b/src/plugins/printsupport/cups/qcupsprintengine.cpp
index d7cd18f1d1..b24b2393ef 100644
--- a/src/plugins/printsupport/cups/qcupsprintengine.cpp
+++ b/src/plugins/printsupport/cups/qcupsprintengine.cpp
@@ -46,8 +46,6 @@
#include <QtGui/qpagelayout.h>
#include <cups/cups.h>
-#include <limits.h>
-#include <math.h>
#include "private/qcore_unix_p.h" // overrides QT_OPEN
diff --git a/src/printsupport/dialogs/qprintpreviewdialog.cpp b/src/printsupport/dialogs/qprintpreviewdialog.cpp
index a71f2122dc..e96efb7448 100644
--- a/src/printsupport/dialogs/qprintpreviewdialog.cpp
+++ b/src/printsupport/dialogs/qprintpreviewdialog.cpp
@@ -53,8 +53,6 @@
#include <QtWidgets/qformlayout.h>
#include <QtCore/QCoreApplication>
-#include <math.h>
-
#ifndef QT_NO_PRINTPREVIEWDIALOG
static void initResources()
diff --git a/src/printsupport/kernel/qprintengine_pdf.cpp b/src/printsupport/kernel/qprintengine_pdf.cpp
index 5016840bda..5eec872cf7 100644
--- a/src/printsupport/kernel/qprintengine_pdf.cpp
+++ b/src/printsupport/kernel/qprintengine_pdf.cpp
@@ -42,10 +42,6 @@
#include "qprinterinfo.h"
#include <QtGui/qpagelayout.h>
-#include <limits.h>
-#include <math.h>
-
-
#ifdef Q_OS_UNIX
#include "private/qcore_unix_p.h" // overrides QT_OPEN
#endif
diff --git a/src/widgets/graphicsview/qgraphicsitem.cpp b/src/widgets/graphicsview/qgraphicsitem.cpp
index c38785bcd6..94733dde72 100644
--- a/src/widgets/graphicsview/qgraphicsitem.cpp
+++ b/src/widgets/graphicsview/qgraphicsitem.cpp
@@ -762,8 +762,6 @@
#include <private/qapplication_p.h>
#include <private/qgesturemanager_p.h>
-#include <math.h>
-
QT_BEGIN_NAMESPACE
static inline void _q_adjustRect(QRect *rect)
diff --git a/src/widgets/widgets/qdatetimeedit.cpp b/src/widgets/widgets/qdatetimeedit.cpp
index 3f6b5102cf..21958e91d4 100644
--- a/src/widgets/widgets/qdatetimeedit.cpp
+++ b/src/widgets/widgets/qdatetimeedit.cpp
@@ -31,7 +31,6 @@
**
****************************************************************************/
-#include <math.h>
#include <private/qdatetimeedit_p.h>
#include <qabstractspinbox.h>
#include <qapplication.h>
diff --git a/src/widgets/widgets/qspinbox.cpp b/src/widgets/widgets/qspinbox.cpp
index 3fe1218b87..3e5f690f5b 100644
--- a/src/widgets/widgets/qspinbox.cpp
+++ b/src/widgets/widgets/qspinbox.cpp
@@ -41,7 +41,6 @@
#include <qvalidator.h>
#include <qdebug.h>
-#include <math.h>
#include <float.h>
QT_BEGIN_NAMESPACE