Qt: some cleanup

This commit is contained in:
Megamouse
2026-01-09 18:56:27 +01:00
parent 49bcc93072
commit be77083a2b
2 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ void Highlighter::highlightBlock(const QString &text)
QRegularExpressionMatchIterator matchIterator = rule.pattern.globalMatch(text); QRegularExpressionMatchIterator matchIterator = rule.pattern.globalMatch(text);
while (matchIterator.hasNext()) while (matchIterator.hasNext())
{ {
QRegularExpressionMatch match = matchIterator.next(); const QRegularExpressionMatch match = matchIterator.next();
setFormat(match.capturedStart(), match.capturedLength(), rule.format); setFormat(match.capturedStart(), match.capturedLength(), rule.format);
} }
} }