tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 962, 979 Change-Id: Ic31a6129828a41bd3450567ca8cb8884d60691cc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175220 Reviewed-by: David Gilbert <freedesktop@treblig.org> Tested-by: Jenkins
This commit is contained in:
parent
e2479ebd5c
commit
589974b0ca
1 changed files with 1 additions and 12 deletions
|
@ -959,6 +959,7 @@ void ToolBarRules::MainViewShellChanged (ViewShell::ShellType nShellType)
|
|||
case ::sd::ViewShell::ST_IMPRESS:
|
||||
case ::sd::ViewShell::ST_NOTES:
|
||||
case ::sd::ViewShell::ST_HANDOUT:
|
||||
case ::sd::ViewShell::ST_DRAW:
|
||||
mpToolBarManager->AddToolBar(
|
||||
ToolBarManager::ToolBarGroup::Permanent,
|
||||
ToolBarManager::msToolBar);
|
||||
|
@ -975,18 +976,6 @@ void ToolBarRules::MainViewShellChanged (ViewShell::ShellType nShellType)
|
|||
ToolbarId::Draw_Text_Toolbox_Sd);
|
||||
break;
|
||||
|
||||
case ::sd::ViewShell::ST_DRAW:
|
||||
mpToolBarManager->AddToolBar(
|
||||
ToolBarManager::ToolBarGroup::Permanent,
|
||||
ToolBarManager::msToolBar);
|
||||
mpToolBarManager->AddToolBar(
|
||||
ToolBarManager::ToolBarGroup::Permanent,
|
||||
ToolBarManager::msOptionsToolBar);
|
||||
mpToolBarManager->AddToolBar(
|
||||
ToolBarManager::ToolBarGroup::Permanent,
|
||||
ToolBarManager::msViewerToolBar);
|
||||
break;
|
||||
|
||||
case ViewShell::ST_OUTLINE:
|
||||
mpToolBarManager->AddToolBar(
|
||||
ToolBarManager::ToolBarGroup::Permanent,
|
||||
|
|
Loading…
Reference in a new issue