sd/source/ui/docshell/docshel3.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
New commits: commit 7ee9cc0f6fdf7d459817f87018bd2bde31c7aa1f Author: Bogdan Buzea <buzea.bog...@libreoffice.org> AuthorDate: Tue Oct 22 06:32:04 2024 +0200 Commit: David Gilbert <freedesk...@treblig.org> CommitDate: Sun Oct 27 01:28:15 2024 +0200 tdf#163486: PVS: Identical branches V1037 Two or more case-branches perform the same actions. Check lines: 235, 249 Change-Id: If20872264edda30a8854e40787b73060990d2224 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175392 Reviewed-by: David Gilbert <freedesk...@treblig.org> Tested-by: Jenkins diff --git a/sd/source/ui/docshell/docshel3.cxx b/sd/source/ui/docshell/docshel3.cxx index 4b1e790428f8..234c63578667 100644 --- a/sd/source/ui/docshell/docshel3.cxx +++ b/sd/source/ui/docshell/docshel3.cxx @@ -230,6 +230,7 @@ void DrawDocShell::Execute( SfxRequest& rReq ) } break; + case SID_VERSION: case SID_CLOSEDOC: { ExecuteSlot(rReq, SfxObjectShell::GetStaticInterface()); @@ -244,12 +245,6 @@ void DrawDocShell::Execute( SfxRequest& rReq ) } break; - case SID_VERSION: - { - ExecuteSlot( rReq, SfxObjectShell::GetStaticInterface() ); - } - break; - case SID_HANGUL_HANJA_CONVERSION: { if( mpViewShell )