Commit 4b8ef6be authored by Jonathan Riddell's avatar Jonathan Riddell 🏄

remove modern C++ use to fix compile with current KDE policy

parent 3aa27bc3
......@@ -87,7 +87,7 @@ void PythonHighlighter::highlightBlock(const QString &text)
while (pos < text.length()) {
// Trying to close current environments
bool triggered = false;
for (int i = 0; i < flags.size() and not triggered; i++) {
for (int i = 0; i < flags.size() && !triggered; i++) {
int flag = flags[i];
QRegExp &regexp = regexps[i];
QTextCharFormat &format = formats[i];
......@@ -126,7 +126,7 @@ void PythonHighlighter::highlightBlock(const QString &text)
singleLineCommentStart.indexIn(text, pos);
if (singleLineCommentStartPos != -1
and singleLineCommentStartPos < minPos) {
&& singleLineCommentStartPos < minPos) {
setFormat(pos, text.length() - pos, commentFormat());
break;
} else if (minRegexp) {
......
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