Correct usage of network-settings.h.
authorJason McDonald <jason.mcdonald@nokia.com>
Mon, 28 Nov 2011 02:02:52 +0000 (12:02 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 28 Nov 2011 07:13:41 +0000 (08:13 +0100)
Four of the modified files only use functions from network-settings.h
on Windows, and the other three files don't use anything from that
header.

Change-Id: Ifa4b0319d14367735b859e538921fa0eeeccce1a
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/corelib/io/qdir/tst_qdir.cpp
tests/auto/corelib/io/qfile/tst_qfile.cpp
tests/auto/corelib/io/qfileinfo/tst_qfileinfo.cpp
tests/auto/widgets/dialogs/qfiledialog/tst_qfiledialog.cpp
tests/auto/widgets/dialogs/qfiledialog2/tst_qfiledialog2.cpp
tests/manual/qhttpnetworkconnection/main.cpp
tests/manual/socketengine/main.cpp

index 28ccad3..d6944ea 100644 (file)
 #include <qfileinfo.h>
 #include <qregexp.h>
 #include <qstringlist.h>
+
+#if (defined(Q_OS_WIN) && !defined(Q_OS_WINCE))
 #include "../../../network-settings.h"
+#endif
 
 #if defined(Q_OS_WIN)
 #define _WIN32_WINNT  0x500
index e467b86..6f295f1 100644 (file)
 
 #include <stdio.h>
 #include <errno.h>
+
+#if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
 #include "../../../network-settings.h"
+#endif
 
 #ifndef STDIN_FILENO
 #define STDIN_FILENO 0
index 4ce22ab..06e16ec 100644 (file)
@@ -63,7 +63,9 @@
 #endif
 #include <qplatformdefs.h>
 #include <qdebug.h>
+#if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
 #include "../../../network-settings.h"
+#endif
 #include <private/qfileinfo_p.h>
 #include "../../../../shared/filesystem.h"
 
index bdc7609..5d64446 100644 (file)
@@ -68,8 +68,6 @@
 #include <QFileDialog>
 #include <QFileSystemModel>
 
-#include "../../../network-settings.h"
-
 //TESTED_CLASS=
 //TESTED_FILES=
 
index 056d748..85b8166 100644 (file)
@@ -64,7 +64,9 @@
 #include "../../../../../src/widgets/dialogs/qfilesystemmodel_p.h"
 #include "../../../../../src/widgets/dialogs/qfiledialog_p.h"
 
+#if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
 #include "../../../network-settings.h"
+#endif
 
 //TESTED_CLASS=
 //TESTED_FILES=
index 62b1cb3..502efca 100644 (file)
@@ -46,7 +46,6 @@
 #include <QtNetwork/qnetworkreply.h>
 #include <QtNetwork/qnetworkrequest.h>
 #include <QtNetwork/qnetworkaccessmanager.h>
-#include "../../auto/network-settings.h"
 
 class tst_qhttpnetworkconnection : public QObject
 {
index 36c233a..115a187 100644 (file)
@@ -45,7 +45,6 @@
 #include <QtNetwork/qnetworkreply.h>
 #include <QtNetwork/qnetworkrequest.h>
 #include <QtNetwork/qnetworkaccessmanager.h>
-#include "../../auto/network-settings.h"
 #include <QtNetwork>
 #include <QDebug>
 #include <private/qabstractsocketengine_p.h>