From 35e2aa6204925c74a988abc37d6486e5597b51c0 Mon Sep 17 00:00:00 2001 From: Bogdan Buzea Date: Mon, 21 Oct 2024 16:22:46 +0200 Subject: tdf#163486: PVS: Identical branches V1037 Two or more case-branches perform the same actions. Check lines: 717, 733 Change-Id: I57fc125abb8c9a4c9dea197945f45b95b90e41b7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175320 Reviewed-by: Xisco Fauli Tested-by: Jenkins --- desktop/source/app/app.cxx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'desktop/source') diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index a4ce4c965d3a..624b5cb0b6b4 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -713,6 +713,8 @@ OUString Desktop::CreateErrorMsgString( /// the bootstrap INI file could not be found or read case ::utl::Bootstrap::MISSING_BOOTSTRAP_FILE: + /// the version locator INI file could not be found or read + case ::utl::Bootstrap::MISSING_VERSION_FILE: { aMsg = DpResId(STR_BOOTSTRAP_ERR_FILE_MISSING); } @@ -727,13 +729,6 @@ OUString Desktop::CreateErrorMsgString( } break; - /// the version locator INI file could not be found or read - case ::utl::Bootstrap::MISSING_VERSION_FILE: - { - aMsg = DpResId(STR_BOOTSTRAP_ERR_FILE_MISSING); - } - break; - /// the version locator INI has no entry for this version case ::utl::Bootstrap::MISSING_VERSION_FILE_ENTRY: { -- cgit