diff options
author | kh <karsten.heimrich@theqtcompany.com> | 2014-11-27 14:10:15 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@theqtcompany.com> | 2014-12-02 13:28:59 +0100 |
commit | cd9782fd09420af12c5127468bdcb214efc633fe (patch) | |
tree | 1f6f6ca6295f4fdc1d00f9daffa7f167540c0c3c /tests/auto | |
parent | 2e05d089af226f798cbae3f44ff9d131bf682024 (diff) |
Remove occurrences of QHostAddress.
The overload of QAbstractSocket::connectToHost() did convert to
QHostAddress back to QString to call the other connect version.
Change-Id: Idd4089fd92cfd9b103786395a455d0a18abc2c4a
Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/installer/clientserver/tst_clientserver.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/auto/installer/clientserver/tst_clientserver.cpp b/tests/auto/installer/clientserver/tst_clientserver.cpp index 1c135c0b5..a0652bcdd 100644 --- a/tests/auto/installer/clientserver/tst_clientserver.cpp +++ b/tests/auto/installer/clientserver/tst_clientserver.cpp @@ -39,7 +39,6 @@ #include <remotefileengine.h> #include <remoteserver.h> -#include <QHostAddress> #include <QSettings> #include <QTcpSocket> #include <QTemporaryFile> @@ -66,8 +65,7 @@ private slots: server.start(); QTcpSocket socket; - socket.connectToHost(QHostAddress(QLatin1String(Protocol::DefaultHostAddress)), - Protocol::DefaultPort); + socket.connectToHost(QLatin1String(Protocol::DefaultHostAddress), Protocol::DefaultPort); QVERIFY2(socket.waitForConnected(), "Could not connect to server."); QCOMPARE(socket.state() == QAbstractSocket::ConnectedState, true); @@ -103,7 +101,7 @@ private slots: server.start(); QTcpSocket socket; - socket.connectToHost(QHostAddress(QLatin1String(Protocol::DefaultHostAddress)), port); + socket.connectToHost(QLatin1String(Protocol::DefaultHostAddress), port); QVERIFY2(socket.waitForConnected(), "Could not connect to server."); QCOMPARE(socket.state() == QAbstractSocket::ConnectedState, true); |