QSyntaxHighlighter: minor code de-duplication
authorKonstantin Ritt <ritt.ks@gmail.com>
Sat, 27 Oct 2012 06:11:36 +0000 (09:11 +0300)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 29 Oct 2012 21:21:32 +0000 (22:21 +0100)
commit3a333f2d92a44feba017c7951049e89adbbda686
tree3fd95defbdcd81ac38a4a408700affa4c3196f3c
parentf05a392f3ea70d2d446bb3a0bc826ef6d60f1c3b
QSyntaxHighlighter: minor code de-duplication

The (r.start != -1) case is equal to (i == formatChanges.count()) case
in the loop; no need to exit the loop just to do exactly what it did.

Change-Id: I4129d8012399895c2fce70b26716ca5aeadee79c
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
src/gui/text/qsyntaxhighlighter.cpp