the comma operator in C++ is evil

This commit is contained in:
mae
2009-04-24 18:12:36 +02:00
parent b9e376f5dd
commit 7f64e11cc1

View File

@@ -3403,7 +3403,7 @@ void BaseTextEditor::_q_highlightBlocks()
block.length()));
QTextCursor closeCursor;
bool firstRun = true;
while (TextBlockUserData::findPreviousBlockOpenParenthesis(&cursor), firstRun) {
while (TextBlockUserData::findPreviousBlockOpenParenthesis(&cursor, firstRun)) {
firstRun = false;
highlightBlocksInfo.open.prepend(cursor.blockNumber());
highlightBlocksInfo.visualIndent.prepend(d->visualIndent(cursor.block()));