From 1482739002f7dfca398ddc850c0bc1e0f4893ddd Mon Sep 17 00:00:00 2001 From: Timur Pocheptsov Date: Wed, 22 Jul 2020 14:23:20 +0200 Subject: QHostAddress: resolve API issues marked with ##Qt6 Also, remove the deprecated function and its auto-test. Change-Id: If04a54c4b91e0f76523960c7b1a5bcb8fe883ac6 Reviewed-by: Edward Welbourne Reviewed-by: Thiago Macieira --- .../network/kernel/qhostaddress/tst_qhostaddress.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'tests/auto/network/kernel/qhostaddress') diff --git a/tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp b/tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp index ad8c4a8d1c..6bfd40a580 100644 --- a/tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp +++ b/tests/auto/network/kernel/qhostaddress/tst_qhostaddress.cpp @@ -364,23 +364,9 @@ void tst_QHostAddress::isEqual() QCOMPARE(second.isEqual(first, QHostAddress::ConversionModeFlag(flags)), result); } -QT_WARNING_PUSH -#ifdef QT_WARNING_DISABLE_DEPRECATED -QT_WARNING_DISABLE_DEPRECATED -#endif - void tst_QHostAddress::assignment() { QHostAddress address; - -#if QT_DEPRECATED_SINCE(5, 8) - address = "127.0.0.1"; - QCOMPARE(address, QHostAddress("127.0.0.1")); - - address = "::1"; - QCOMPARE(address, QHostAddress("::1")); -#endif - QHostAddress addr("4.2.2.1"); sockaddr_in sockAddr; sockAddr.sin_family = AF_INET; @@ -389,8 +375,6 @@ void tst_QHostAddress::assignment() QCOMPARE(address, addr); } -QT_WARNING_POP - void tst_QHostAddress::scopeId() { QHostAddress address("fe80::2e0:4cff:fefb:662a%eth0"); -- cgit v1.2.3