Removing duplicate includes
authorSergio Ahumada <sergio.ahumada@nokia.com>
Wed, 5 Sep 2012 13:07:42 +0000 (15:07 +0200)
committerQt by Nokia <qt-info@nokia.com>
Sun, 9 Sep 2012 16:30:43 +0000 (18:30 +0200)
Do not include a header more than once

Change-Id: Ia2e5d66e72988ad833cf5177a3f8aa988bf510e9
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
38 files changed:
qmake/generators/makefile.cpp
src/corelib/global/qendian.h
src/corelib/io/qfilesystemengine_unix.cpp
src/corelib/json/qjsonarray.cpp
src/corelib/json/qjsonvalue.cpp
src/corelib/kernel/qsharedmemory_unix.cpp
src/corelib/plugin/qlibrary_win.cpp
src/gui/image/qimage.cpp
src/gui/image/qmovie.h
src/gui/image/qnativeimage.cpp
src/gui/kernel/qguiapplication.cpp
src/gui/kernel/qguivariant.cpp
src/gui/kernel/qplatformintegration.cpp
src/gui/text/qfontengine_ft.cpp
src/network/kernel/qhostinfo_p.h
src/network/socket/qnativesocketengine_unix.cpp
src/opengl/qgl_qpa.cpp
src/platformsupport/fontdatabases/fontconfig/qfontenginemultifontconfig.cpp
src/plugins/platforms/windows/accessible/qwindowsaccessibility.cpp
src/plugins/platforms/windows/qwindowsscreen.cpp
src/plugins/platforms/xcb/qxcbintegration.cpp
src/tools/qdbuscpp2xml/qdbuscpp2xml.cpp
src/widgets/dialogs/qdialog.cpp
src/widgets/dialogs/qfilesystemmodel_p.h
src/widgets/itemviews/qabstractitemview_p.h
src/widgets/kernel/qapplication.cpp
src/widgets/styles/qcommonstyle.cpp
src/widgets/styles/qstylesheetstyle.cpp
src/widgets/styles/qwindowsmobilestyle.cpp
src/widgets/styles/qwindowsvistastyle_p.h
src/widgets/util/qcompleter.cpp
src/widgets/util/qsystemtrayicon.cpp
src/widgets/widgets/qdialogbuttonbox.cpp
src/widgets/widgets/qlineedit_p.h
src/widgets/widgets/qmainwindowlayout.cpp
src/widgets/widgets/qmenu.cpp
src/widgets/widgets/qwidgetlinecontrol_p.h
tools/configure/environment.cpp

index 22a8b32..2f7e8c7 100644 (file)
@@ -57,7 +57,6 @@
 #else
 #include <io.h>
 #endif
-#include <qdebug.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <time.h>
index 5b18eec..86f73a7 100644 (file)
@@ -52,8 +52,6 @@
 #include <byteswap.h>
 #endif
 
-#include <string.h>
-
 QT_BEGIN_HEADER
 
 QT_BEGIN_NAMESPACE
index 0e0c045..21e2987 100644 (file)
@@ -41,7 +41,6 @@
 
 #include "qplatformdefs.h"
 #include "qfilesystemengine_p.h"
-#include "qplatformdefs.h"
 #include "qfile.h"
 
 #include <QtCore/qvarlengtharray.h>
index 2fcb7a6..cd47bea 100644 (file)
@@ -42,7 +42,6 @@
 #include <qjsonobject.h>
 #include <qjsonvalue.h>
 #include <qjsonarray.h>
-#include <qjsonvalue.h>
 #include <qstringlist.h>
 #include <qvariant.h>
 #include <qdebug.h>
index 2821321..f1e9e20 100644 (file)
@@ -42,7 +42,6 @@
 #include <qjsonobject.h>
 #include <qjsonvalue.h>
 #include <qjsonarray.h>
-#include <qjsonarray.h>
 #include <qvariant.h>
 #include <qstringlist.h>
 #include <qdebug.h>
index 54bd4c6..59d5dfb 100644 (file)
@@ -53,7 +53,6 @@
 #include <sys/types.h>
 #include <sys/ipc.h>
 #include <sys/shm.h>
-#include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <unistd.h>
index 10ca17c..3568bed 100644 (file)
@@ -44,7 +44,6 @@
 #include "qfile.h"
 #include "qdir.h"
 #include "qfileinfo.h"
-#include "qdir.h"
 #include <private/qfilesystementry_p.h>
 
 #if defined(QT_NO_LIBRARY) && defined(Q_OS_WIN)
index ef184c0..524ab91 100644 (file)
@@ -64,7 +64,6 @@
 
 #include <qhash.h>
 
-#include <private/qguiapplication_p.h>
 #include <private/qpaintengine_raster_p.h>
 
 #include <private/qimage_p.h>
index e11dea6..f0d5290 100644 (file)
@@ -48,7 +48,6 @@
 
 #include <QtCore/qbytearray.h>
 #include <QtCore/qlist.h>
-#include <QtCore/qobject.h>
 #include <QtGui/qimagereader.h>
 
 QT_BEGIN_HEADER
index c562b0b..2794f09 100644 (file)
@@ -47,9 +47,6 @@
 
 #include "private/qpaintengine_raster_p.h"
 
-#include "private/qguiapplication_p.h"
-
-
 
 QT_BEGIN_NAMESPACE
 
index d48112e..f59c7dc 100644 (file)
 #include <private/qdrawhelper_p.h>
 
 #include <QtGui/qgenericpluginfactory.h>
-#include <qpa/qplatformintegration.h>
 #include <QtGui/qstylehints.h>
 #include <QtGui/qinputmethod.h>
 #include <QtGui/qpixmapcache.h>
-#include <qpa/qplatformtheme.h>
 #include <qpa/qplatforminputcontext.h>
 #include <qpa/qplatforminputcontext_p.h>
 
@@ -81,7 +79,6 @@
 
 #include "private/qdnd_p.h"
 #include <qpa/qplatformthemefactory_p.h>
-#include <qpa/qplatformdrag.h>
 
 #ifndef QT_NO_CURSOR
 #include <qpa/qplatformcursor.h>
index 8a5c083..417dc4b 100644 (file)
 **
 ****************************************************************************/
 
-#include "qvariant.h"
-
 // Gui types
 #include "qbitmap.h"
 #include "qbrush.h"
 #include "qcolor.h"
 #include "qcursor.h"
-#include "qdatastream.h"
-#include "qdebug.h"
 #include "qfont.h"
 #include "qimage.h"
 #include "qkeysequence.h"
index 85933de..54ba3b6 100644 (file)
@@ -48,7 +48,6 @@
 #include <QtGui/private/qguiapplication_p.h>
 #include <QtGui/private/qpixmap_raster_p.h>
 #include <qpa/qplatformscreen_p.h>
-#include <qpa/qplatformtheme.h>
 #include <private/qdnd_p.h>
 
 QT_BEGIN_NAMESPACE
index af0a510..946285b 100644 (file)
@@ -53,7 +53,6 @@
 #include "qthreadstorage.h"
 #include <qmath.h>
 
-#include "qfontengine_ft_p.h"
 #include <ft2build.h>
 #include FT_FREETYPE_H
 #include FT_OUTLINE_H
index 57a5050..afe5f08 100644 (file)
@@ -62,7 +62,6 @@
 #include "QtCore/qpointer.h"
 #include "QtCore/qthread.h"
 #include "QtCore/qthreadpool.h"
-#include "QtCore/qmutex.h"
 #include "QtCore/qrunnable.h"
 #include "QtCore/qlist.h"
 #include "QtCore/qqueue.h"
index 5993c18..4b22f1c 100644 (file)
@@ -53,9 +53,6 @@
 #ifndef QT_NO_IPV6IFNAME
 #include <net/if.h>
 #endif
-#ifndef QT_NO_IPV6IFNAME
-#include <net/if.h>
-#endif
 #ifdef QT_LINUXBASE
 #include <arpa/inet.h>
 #endif
index 7e37fa1..117401c 100644 (file)
@@ -44,7 +44,6 @@
 #include <QPixmap>
 #include <QDebug>
 
-#include <private/qapplication_p.h>
 #include <qpa/qplatformopenglcontext.h>
 #include <qpa/qplatformwindow.h>
 #include <QtGui/QSurfaceFormat>
index 153c452..a10186c 100644 (file)
@@ -42,7 +42,6 @@
 #include "qfontenginemultifontconfig_p.h"
 
 #include <QtGui/private/qfontengine_ft_p.h>
-#include <QtGui/private/qfontengine_ft_p.h>
 
 QT_BEGIN_NAMESPACE
 
index fa8862f..f59a02b 100644 (file)
@@ -78,7 +78,6 @@
 #  include <winable.h>
 #endif
 
-#include <oleacc.h>
 #include <servprov.h>
 #if !defined(Q_CC_BOR) && !defined (Q_CC_GNU)
 #include <comdef.h>
index d843236..4155c26 100644 (file)
@@ -44,7 +44,6 @@
 #include "qwindowswindow.h"
 #include "qwindowsintegration.h"
 #include "qwindowscursor.h"
-#include "qwindowscontext.h"
 
 #include "qtwindows_additional.h"
 
index 501b18a..cc1c525 100644 (file)
@@ -54,7 +54,6 @@
 
 #include <QtPlatformSupport/private/qgenericunixeventdispatcher_p.h>
 #include <QtPlatformSupport/private/qgenericunixfontdatabase_p.h>
-#include <QtPlatformSupport/private/qgenericunixfontdatabase_p.h>
 #include <QtPlatformSupport/private/qgenericunixservices_p.h>
 
 #include <stdio.h>
index 87a7692..ff5f435 100644 (file)
@@ -51,7 +51,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <stdlib.h>
 
 #include "qdbusconnection.h"    // for the Export* flags
 #include "qdbusconnection_p.h"    // for the qDBusCheckAsyncTag
index 0e57a16..efb850d 100644 (file)
@@ -55,7 +55,6 @@
 #include <qpa/qplatformtheme.h>
 #include "private/qdialog_p.h"
 #include "private/qguiapplication_p.h"
-#include <qpa/qplatformtheme.h>
 #ifndef QT_NO_ACCESSIBILITY
 #include "qaccessible.h"
 #endif
index 3a02b91..48bd82d 100644 (file)
@@ -63,8 +63,6 @@
 #include <qpair.h>
 #include <qdir.h>
 #include <qicon.h>
-#include <qdir.h>
-#include <qicon.h>
 #include <qfileinfo.h>
 #include <qtimer.h>
 #include <qhash.h>
index dc2b2df..4575dd3 100644 (file)
@@ -62,7 +62,6 @@
 #include "QtCore/qpair.h"
 #include "QtGui/qregion.h"
 #include "QtCore/qdebug.h"
-#include "QtGui/qpainter.h"
 #include "QtCore/qbasictimer.h"
 #include "QtCore/qelapsedtimer.h"
 
index 34b2893..7e672f4 100644 (file)
 #include "private/qevent_p.h"
 #include "qwidget_p.h"
 
-#include "qapplication.h"
-
 #include "qgesture.h"
 #include "private/qgesturemanager_p.h"
-#include "private/qguiapplication_p.h"
 #include <qpa/qplatformfontdatabase.h>
 #ifndef QT_NO_LIBRARY
 #include "qlibrary.h"
 #endif
 
-#ifdef Q_OS_WINCE
 #include "qdatetime.h"
+
+#ifdef Q_OS_WINCE
 extern bool qt_wince_is_smartphone(); //qguifunctions_wince.cpp
 extern bool qt_wince_is_mobile();     //qguifunctions_wince.cpp
 extern bool qt_wince_is_pocket_pc();  //qguifunctions_wince.cpp
 #endif
 
-#include "qdatetime.h"
 #include <qpa/qplatformwindow.h>
 
 //#define ALIEN_DEBUG
index da6298a..417a043 100644 (file)
@@ -70,7 +70,6 @@
 #include <qdebug.h>
 #include <qtextformat.h>
 #include <qwizard.h>
-#include <qtabbar.h>
 #include <qfileinfo.h>
 #include <qdir.h>
 #include <qsettings.h>
index ffbf7c2..d25092b 100644 (file)
@@ -54,7 +54,6 @@
 #include <qlineedit.h>
 #include <qwindowsstyle.h>
 #include <qcombobox.h>
-#include <qwindowsstyle.h>
 #include <qplastiquestyle.h>
 #include "private/qcssparser_p.h"
 #include "private/qmath_p.h"
index 863bd1a..6b36260 100644 (file)
@@ -61,8 +61,6 @@
 #include "qabstractscrollarea.h"
 #include "qabstractbutton.h"
 #include "qcombobox.h"
-#include "qabstractscrollarea.h"
-#include "qframe.h"
 #include "qscrollbar.h"
 #include "qabstractitemview.h"
 #include "qmenubar.h"
index cdb1227..494d9fa 100644 (file)
@@ -82,8 +82,6 @@
 #include <qmessagebox.h>
 #include <qdialogbuttonbox.h>
 #include <qinputdialog.h>
-#include <qtreeview.h>
-#include <qlistview.h>
 #include <qtableview.h>
 #include <qbasictimer.h>
 #include <qdatetime.h>
index 245857b..f627734 100644 (file)
 #include "QtWidgets/qlistview.h"
 #include "QtWidgets/qapplication.h"
 #include "QtGui/qevent.h"
-#include "QtWidgets/qheaderview.h"
 #include "QtWidgets/qdesktopwidget.h"
 #include "QtWidgets/qlineedit.h"
 
index 9e667b1..e88a03a 100644 (file)
@@ -57,7 +57,6 @@
 #include "qdesktopwidget.h"
 #include "qbitmap.h"
 #include "private/qlabel_p.h"
-#include "qapplication.h"
 
 QT_BEGIN_NAMESPACE
 
index a7d923f..6028d96 100644 (file)
 
 #include "qdialogbuttonbox.h"
 
-#ifdef QT_SOFTKEYS_ENABLED
-#include <QtWidgets/qaction.h>
-#endif
-
-
 QT_BEGIN_NAMESPACE
 
 /*!
index d6af91f..2d02694 100644 (file)
@@ -64,7 +64,6 @@
 #include "QtWidgets/qcompleter.h"
 #include "QtCore/qpointer.h"
 #include "QtCore/qmimedata.h"
-#include "QtWidgets/qlineedit.h"
 
 #include "private/qwidgetlinecontrol_p.h"
 
index 6446453..6a72a32 100644 (file)
 #include "qdockwidget_p.h"
 #include "qtoolbar_p.h"
 #include "qmainwindow.h"
-#include "qmainwindowlayout_p.h"
 #include "qtoolbar.h"
 #include "qtoolbarlayout_p.h"
 #include "qwidgetanimator_p.h"
 #include "qrubberband.h"
-#include "qdockwidget_p.h"
 #include "qtabbar_p.h"
 
 #include <qapplication.h>
index b201179..c8d2b39 100644 (file)
@@ -71,7 +71,6 @@
 #include <private/qaction_p.h>
 #include <private/qsoftkeymanager_p.h>
 #include <private/qguiapplication_p.h>
-#include <qpa/qplatformtheme.h>
 
 QT_BEGIN_NAMESPACE
 
index 2dce790..3e7dd22 100644 (file)
@@ -69,8 +69,6 @@
 
 #include "qplatformdefs.h"
 
-#include "qplatformdefs.h"
-
 QT_BEGIN_HEADER
 
 #ifdef DrawText
index c751191..cf8ed96 100644 (file)
@@ -48,7 +48,6 @@
 #include <QDir>
 #include <QStringList>
 #include <QMap>
-#include <QDir>
 #include <QFile>
 #include <QFileInfo>