aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/parser/qqmljs.g
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@me.com>2013-08-09 12:18:29 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-08-09 13:09:28 +0200
commitf21e01ed220d342990e53817570edd28fb61663d (patch)
tree92d4c4a5cd43bb55b3451a8d6b1a5a7c2c17b7df /src/qml/parser/qqmljs.g
parentfc665d512736e1249480a835e26410a92939e535 (diff)
Fix invalid condition in comparisson.
Thanks to clang (top-of-trunk) pointing out that the unary not operator only applies to the left-hand side of the equality expression. Change-Id: I093b447d55995a4122aeac042a506eb56f8b2442 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/parser/qqmljs.g')
-rw-r--r--src/qml/parser/qqmljs.g2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/parser/qqmljs.g b/src/qml/parser/qqmljs.g
index 5d279ef1a2..9476494105 100644
--- a/src/qml/parser/qqmljs.g
+++ b/src/qml/parser/qqmljs.g
@@ -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;
}