summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <[email protected]>2015-06-16 16:18:26 +0200
committerRalf Habacker <[email protected]>2015-06-17 08:11:35 +0200
commit2d442e9343b998f1241252e2b496259ee3cb073c (patch)
tree80875d9ace5412c3d6ccc24642808aad810ce5e7
parent406eb4b7fb129bfc196f5fbb6246ed0f623b9429 (diff)
Coverige check CID 71433: Logically dead code (DEADCODE)
Execution cannot reach the expression 0 inside this statement: baseIndent = tBlock->getNew....
-rw-r--r--umbrello/dialogs/codeeditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/umbrello/dialogs/codeeditor.cpp b/umbrello/dialogs/codeeditor.cpp
index 93017c3..3fa2494 100644
--- a/umbrello/dialogs/codeeditor.cpp
+++ b/umbrello/dialogs/codeeditor.cpp
@@ -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();