diff options
author | Milian Wolff <milian.wolff@kdab.com> | 2013-03-27 17:04:06 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2013-03-28 00:39:48 +0100 |
commit | 4f6ca7f90a88224eb6afc90d289de2d47c3c06a1 (patch) | |
tree | 49cf4ab8951a1f137dd111a22742829a099edd5d /tests | |
parent | d05da2c8a6c2a794e9f4372f5b29112b85208f97 (diff) |
Add QBluetoothDeviceInfo::operator!= which was missing.
The code just forwards to operator==, as is done as well by e.g.
QBluetoothTransferRequest.
Change-Id: I4db523124b6bd88bcb1f129d0742fc8ef376c61b
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp b/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp index db86342f..d36532c7 100644 --- a/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp +++ b/tests/auto/qbluetoothdeviceinfo/tst_qbluetoothdeviceinfo.cpp @@ -323,7 +323,7 @@ void tst_QBluetoothDeviceInfo::tst_assignment() QVERIFY(copyInfo1.isValid()); QVERIFY(copyInfo2.isValid()); - QVERIFY(!(QBluetoothDeviceInfo() == copyInfo1)); + QVERIFY(QBluetoothDeviceInfo() != copyInfo1); QCOMPARE(copyInfo1.address(), address); QCOMPARE(copyInfo2.address(), address); @@ -355,7 +355,7 @@ void tst_QBluetoothDeviceInfo::tst_serviceUuids() deviceInfo.setServiceUuids(servicesList, QBluetoothDeviceInfo::DataComplete); QVERIFY(deviceInfo.serviceUuids().count() > 0); - QVERIFY(!(deviceInfo == copyInfo)); + QVERIFY(deviceInfo != copyInfo); QVERIFY(deviceInfo.serviceUuidsCompleteness() == QBluetoothDeviceInfo::DataComplete); } @@ -369,7 +369,7 @@ void tst_QBluetoothDeviceInfo::tst_cached() QVERIFY(!deviceInfo.isCached()); deviceInfo.setCached(true); QVERIFY(deviceInfo.isCached()); - QVERIFY(!(deviceInfo == copyInfo)); + QVERIFY(deviceInfo != copyInfo); deviceInfo.setCached(false); QVERIFY(!(deviceInfo.isCached())); |