Skip to content

Commit

Permalink
CID 34718: Logically dead code (DEADCODE)
Browse files Browse the repository at this point in the history
dead_error_begin: Execution cannot reach this statement: case
KoFlake::NoHandle:. because NoHandle causes a return.
  • Loading branch information
hallarempt committed Sep 26, 2019
1 parent df31ff9 commit ebe6241
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/tools/defaulttool/defaulttool/DefaultTool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,8 @@ qreal DefaultTool::rotationOfHandle(KoFlake::SelectionHandle handle, bool useEdg
case KoFlake::TopLeftHandle:
rotation -= 225.0;
break;
case KoFlake::NoHandle:
break;
default:
;
}

if (rotation < 0.0) {
Expand Down

0 comments on commit ebe6241

Please sign in to comment.