Commit 21843d63 authored by Bill King's avatar Bill King
Browse files

Disambiguate the second logical test.

The second line test could be misread by both the compiler or the reader.
gcc even warns about this, so add brackets just to make sure.
parent 6f67360e
......@@ -362,7 +362,7 @@ void CppHighlighter::highlightWord(QStringRef word, int position, int length)
if (word.length() > 2 && word.at(0) == QLatin1Char('Q')) {
if (word.at(1) == QLatin1Char('_') // Q_
|| word.at(1) == QLatin1Char('T') && word.at(2) == QLatin1Char('_')) { // QT_
|| (word.at(1) == QLatin1Char('T') && word.at(2) == QLatin1Char('_'))) { // QT_
for (int i = 1; i < word.length(); ++i) {
const QChar &ch = word.at(i);
if (! (ch.isUpper() || ch == QLatin1Char('_')))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment