summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorRichard J. Moore <rich@kde.org>2015-02-07 15:40:31 +0000
committerRichard J. Moore <rich@kde.org>2015-02-09 10:29:08 +0000
commit86b000ea1b91e4addce61a1c50db0d6c0eda06ac (patch)
tree0be911cb0261f243fc6b6347c32e23f6dc678408 /tests/auto
parentb4491c358ddc4d87258d92bc7fc99832bc3cd526 (diff)
Fix reported build failure with VS2010 on windows 8.1.
Task-number: QTBUG-44321 Change-Id: I885e3dab52193f7dfd245345fde53f6bb3420430 Reviewed-by: Peter Hartmann <peter-qt@hartmann.tk>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp b/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp
index 3c0871ec40..684bd0db68 100644
--- a/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp
+++ b/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp
@@ -491,11 +491,11 @@ void tst_QTcpSocket::bind_data()
// iterate all interfaces, add all addresses on them as test data
QList<QNetworkInterface> interfaces = QNetworkInterface::allInterfaces();
- foreach (const QNetworkInterface &interface, interfaces) {
- if (!interface.isValid())
+ foreach (const QNetworkInterface &netinterface, interfaces) {
+ if (!netinterface.isValid())
continue;
- foreach (const QNetworkAddressEntry &entry, interface.addressEntries()) {
+ foreach (const QNetworkAddressEntry &entry, netinterface.addressEntries()) {
if (entry.ip().isInSubnet(QHostAddress::parseSubnet("fe80::/10"))
|| entry.ip().isInSubnet(QHostAddress::parseSubnet("169.254/16")))
continue; // link-local bind will fail, at least on Linux, so skip it.