diff options
author | Paul Colby <git@colby.id.au> | 2018-04-27 19:55:47 +1000 |
---|---|---|
committer | Paul Colby <qt@colby.id.au> | 2018-04-27 11:10:16 +0000 |
commit | 1a254ab116f63b8188b9bc12cdd19e6d5696c3f2 (patch) | |
tree | f70197186881ea51028e39dd1f87c28ceb7ed030 /tests | |
parent | e4abf2c6e3de158d3a6eb3c46b5158f741136c9d (diff) | |
download | qtxmlpatterns-1a254ab116f63b8188b9bc12cdd19e6d5696c3f2.tar.gz |
Change QSourceLocation::operator!=() to test for inequality
[ChangeLog][QSourceLocation] Corrected QSourceLocation::operator!=()
to test for non-equality, where prior to this it was incorrectly
testing for equality instead.
Also, corrected the QSourceLocation::operator!=() documentation which
was erroneously referencing an unrelated QXmlName class, and updated
the QSourceLocation::operator==() documentation to be consistent with
the rest of the class, as well as broader Qt documentation conventions.
Change-Id: Ia74f84e965f45fd2da3aa42c9c59eba7014b6edb
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qsourcelocation/tst_qsourcelocation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qsourcelocation/tst_qsourcelocation.cpp b/tests/auto/qsourcelocation/tst_qsourcelocation.cpp index 984da1d..b5b33c7 100644 --- a/tests/auto/qsourcelocation/tst_qsourcelocation.cpp +++ b/tests/auto/qsourcelocation/tst_qsourcelocation.cpp @@ -186,7 +186,7 @@ void tst_QSourceLocation::equalnessOperator() const QFETCH(bool, True); QCOMPARE(v1 == v2, True); - QCOMPARE(v1 != v2, True); + QCOMPARE(v1 != v2, !True); } void tst_QSourceLocation::equalnessOperator_data() const @@ -273,7 +273,7 @@ void tst_QSourceLocation::constCorrectness() const QCOMPARE(def, def2); /* Inverse equalness operator. */ - QVERIFY(def != def2); + QVERIFY(!(def != def2)); } void tst_QSourceLocation::objectSize() const |