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:
parent
3097129192
commit
275c940340
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user