Commit 341b730e authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Code clean-up.

parent e5c7d0f1
......@@ -693,8 +693,7 @@ void ScriptEditor::indentBlock(QTextDocument *, QTextBlock block, QChar typedCha
}
int initialIndent = 0;
QTextBlock it = block.previous();
for (; it.isValid(); it = it.previous()) {
for (QTextBlock it = block.previous(); it.isValid(); it = it.previous()) {
const QString text = it.text();
if (! text.isEmpty()) {
......@@ -703,8 +702,6 @@ void ScriptEditor::indentBlock(QTextDocument *, QTextBlock block, QChar typedCha
}
}
// default indent is initialIndent ..
const int braceDepth = blockBraceDepth(block.previous());
const int previousBraceDepth = blockBraceDepth(block.previous().previous());
const int delta = qMax(0, braceDepth - previousBraceDepth);
......
Supports Markdown
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