From dd1eaec040ad6b63f39ef8862b7f3c205b8b49fd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Thorbj=C3=B8rn=20Lindeijer?= <thorbjorn.lindeijer@nokia.com>
Date: Tue, 17 Nov 2009 16:17:12 +0100
Subject: [PATCH] Silence compiler warning

---
 src/shared/qscripthighlighter/qscripthighlighter.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared/qscripthighlighter/qscripthighlighter.cpp b/src/shared/qscripthighlighter/qscripthighlighter.cpp
index f871aeb45ff..fa8566cb619 100644
--- a/src/shared/qscripthighlighter/qscripthighlighter.cpp
+++ b/src/shared/qscripthighlighter/qscripthighlighter.cpp
@@ -116,7 +116,7 @@ void QScriptHighlighter::highlightBlock(const QString &text)
                 } else {
                     const QChar c = text.at(token.offset);
 
-                    if (m_duiEnabled && c.isUpper() || !m_duiEnabled && c == QLatin1Char('Q'))
+                    if ((m_duiEnabled && c.isUpper()) || (!m_duiEnabled && c == QLatin1Char('Q')))
                         setFormat(token.offset, token.length, m_formats[TypeFormat]);
                     else
                         setFormat(token.offset, token.length, emptyFormat);
-- 
GitLab