Commit 2d442e93 authored by Ralf Habacker's avatar Ralf Habacker

Coverige check CID 71433: Logically dead code (DEADCODE)

Execution cannot reach the expression 0 inside this statement: baseIndent = tBlock->getNew....
parent 406eb4b7
......@@ -1061,7 +1061,7 @@ void CodeEditor::slotCursorPositionChanged()
// auto-indent new lines
textCursor().setPosition(para);
QString currentParaText = textCursor().block().text();
QString baseIndent = tBlock->getNewEditorLine(tBlock->getIndentationLevel()+(cmb ? 1 : 0));
QString baseIndent = tBlock->getNewEditorLine(tBlock->getIndentationLevel() + 1);
// cerr<<"AUTO INDENT:["<<baseIndent.latin1()<<"] isMethod?"<<(cmb?"true":"false")<<endl;
int minPos = baseIndent.length();
......
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