Commit e7fffc4b authored by Ralf Habacker's avatar Ralf Habacker

Fix coverity check CID 161662: Control flow issues (MISSING_BREAK)

This is not really a bug; the fix makes the case more robust.

CCBUG:340646
parent a9da77a5
...@@ -1577,6 +1577,9 @@ void ListPopupMenu::insertSubMenuNew(MenuType type) ...@@ -1577,6 +1577,9 @@ void ListPopupMenu::insertSubMenuNew(MenuType type)
break; break;
case mt_On_Sequence_Diagram: case mt_On_Sequence_Diagram:
insert(mt_Import_from_File, menu, Icon_Utils::SmallIcon(Icon_Utils::it_Import_File), i18n("Import stack trace...")); insert(mt_Import_from_File, menu, Icon_Utils::SmallIcon(Icon_Utils::it_Import_File), i18n("Import stack trace..."));
insert(mt_Object, menu, Icon_Utils::SmallIcon(Icon_Utils::it_Object), i18n("Object..."));
insert(mt_FloatText, menu);
break;
case mt_On_Collaboration_Diagram: case mt_On_Collaboration_Diagram:
insert(mt_Object, menu, Icon_Utils::SmallIcon(Icon_Utils::it_Object), i18n("Object...")); insert(mt_Object, menu, Icon_Utils::SmallIcon(Icon_Utils::it_Object), i18n("Object..."));
insert(mt_FloatText, menu); insert(mt_FloatText, menu);
......
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