diff options
author | Leon Handreke <leonh@ndreke.de> | 2014-02-23 23:34:26 +0100 |
---|---|---|
committer | David Edmundson <kde@davidedmundson.co.uk> | 2014-04-11 23:56:34 +0200 |
commit | 5eb1d5f99c03d7b88e42a241c3324286274942ee (patch) | |
tree | e65a5d2eed55c806a2b19973dbd893bea3c02904 | |
parent | 1600bb05b0b9fd0d1d7785163b6d07abef48ba2a (diff) |
Fix tests because SocketAddressIPv6.port grew from ushort to uint
-rw-r--r-- | tests/dbus/types.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/dbus/types.cpp b/tests/dbus/types.cpp index ab335352..51712031 100644 --- a/tests/dbus/types.cpp +++ b/tests/dbus/types.cpp @@ -110,21 +110,21 @@ void TestTypes::testParameters() saIPv4 = qdbus_cast<SocketAddressIPv4>(mParameters.value(QLatin1String("SU"))); QCOMPARE(saIPv4.address, QLatin1String("1.1.1.1")); - QCOMPARE(saIPv4.port, static_cast<ushort>(1111)); + QCOMPARE(saIPv4.port, static_cast<uint>(1111)); saIPv6 = qdbus_cast<SocketAddressIPv6>(mParameters.value(QLatin1String("SU"))); QCOMPARE(saIPv6.address, QLatin1String("1.1.1.1")); - QCOMPARE(saIPv6.port, static_cast<ushort>(1111)); + QCOMPARE(saIPv6.port, static_cast<uint>(1111)); // SocketAddressIPv4->SocketAddressIPv4 saIPv4 = qdbus_cast<SocketAddressIPv4>(mParameters.value(QLatin1String("saIPv4"))); QCOMPARE(saIPv4.address, QLatin1String("2.2.2.2")); - QCOMPARE(saIPv4.port, static_cast<ushort>(2222)); + QCOMPARE(saIPv4.port, static_cast<uint>(2222)); // SocketAddressIPv6->SocketAddressIPv6 saIPv6 = qdbus_cast<SocketAddressIPv6>(mParameters.value(QLatin1String("saIPv6"))); QCOMPARE(saIPv6.address, QLatin1String("3.3.3.3")); - QCOMPARE(saIPv6.port, static_cast<ushort>(3333)); + QCOMPARE(saIPv6.port, static_cast<uint>(3333)); } void TestTypes::cleanup() |