diff options
author | Janne Anttila <janne.anttila@digia.com> | 2009-08-11 10:53:13 (GMT) |
---|---|---|
committer | Janne Anttila <janne.anttila@digia.com> | 2009-08-11 10:53:13 (GMT) |
commit | 882f407f2a48c59774eb07f3f91d3b26a40e9998 (patch) | |
tree | e4015596f65fce8536abc64c0baafc27a1774675 | |
parent | de1dc0a9893fb4afe31ccc60c12cafa19546349d (diff) | |
download | Qt-882f407f2a48c59774eb07f3f91d3b26a40e9998.zip Qt-882f407f2a48c59774eb07f3f91d3b26a40e9998.tar.gz Qt-882f407f2a48c59774eb07f3f91d3b26a40e9998.tar.bz2 |
Removed unneccessary QHostAddress cast from tst_qnativesocketengine.cpp
The cast/constructor is not needed anymore due to commit 5b80fbad.
-rw-r--r-- | tests/auto/qnativesocketengine/tst_qnativesocketengine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qnativesocketengine/tst_qnativesocketengine.cpp b/tests/auto/qnativesocketengine/tst_qnativesocketengine.cpp index be0bfe3..dfc6b78 100644 --- a/tests/auto/qnativesocketengine/tst_qnativesocketengine.cpp +++ b/tests/auto/qnativesocketengine/tst_qnativesocketengine.cpp @@ -153,14 +153,14 @@ void tst_QNativeSocketEngine::simpleConnectToIMAP() QVERIFY(socketDevice.initialize(QAbstractSocket::TcpSocket, QAbstractSocket::IPv4Protocol)); QVERIFY(socketDevice.state() == QAbstractSocket::UnconnectedState); - const bool isConnected = socketDevice.connectToHost(QHostAddress(QtNetworkSettings::serverIP()), 143); + const bool isConnected = socketDevice.connectToHost(QtNetworkSettings::serverIP(), 143); if (!isConnected) { QVERIFY(socketDevice.state() == QAbstractSocket::ConnectingState); QVERIFY(socketDevice.waitForWrite()); QVERIFY(socketDevice.state() == QAbstractSocket::ConnectedState); } QVERIFY(socketDevice.state() == QAbstractSocket::ConnectedState); - QVERIFY(socketDevice.peerAddress() == QHostAddress(QtNetworkSettings::serverIP())); + QVERIFY(socketDevice.peerAddress() == QtNetworkSettings::serverIP()); // Wait for the greeting QVERIFY(socketDevice.waitForRead()); @@ -592,7 +592,7 @@ void tst_QNativeSocketEngine::networkError() QVERIFY(client.initialize(QAbstractSocket::TcpSocket, QAbstractSocket::IPv4Protocol)); - const bool isConnected = client.connectToHost(QHostAddress(QtNetworkSettings::serverIP()), 143); + const bool isConnected = client.connectToHost(QtNetworkSettings::serverIP(), 143); if (!isConnected) { QVERIFY(client.state() == QAbstractSocket::ConnectingState); QVERIFY(client.waitForWrite()); |