QDoc: Fix (!a == b) bug

This is (!a) == b which is not what is intended here.

This exact bug was fixed in a couple of other instances of the QmlJSParser
(in QtCreator and Qt itself) by now.

Change-Id: I46a50153d7c349f21e0a888e2e3b4c4fa65c27c0
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
This commit is contained in:
Tobias Hunger 2013-08-29 10:50:42 +02:00 committed by The Qt Project
parent 3097129192
commit 275c940340
2 changed files with 2 additions and 2 deletions

View File

@ -316,7 +316,7 @@ public:
inline DiagnosticMessage diagnosticMessage() const
{
foreach (const DiagnosticMessage &d, diagnostic_messages) {
if (! d.kind == DiagnosticMessage::Warning)
if (d.kind != DiagnosticMessage::Warning)
return d;
}

View File

@ -175,7 +175,7 @@ public:
inline DiagnosticMessage diagnosticMessage() const
{
foreach (const DiagnosticMessage &d, diagnostic_messages) {
if (! d.kind == DiagnosticMessage::Warning)
if (d.kind != DiagnosticMessage::Warning)
return d;
}