dbaccess/source/ui/dlg/ConnectionPage.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit cf9b7e36fe7f5f9a817d9fee420f9c5439f69d63 Author: Bogdan Buzea <buzea.bog...@libreoffice.org> AuthorDate: Tue Oct 22 06:16:26 2024 +0200 Commit: David Gilbert <freedesk...@treblig.org> CommitDate: Fri Oct 25 03:03:09 2024 +0200 tdf#163486: PVS: Identical branches V1037 Two or more case-branches perform the same actions. Check lines: 105, 155 Change-Id: I077ba811fb9050eca4ba97d225323c807ee8e9cf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175390 Reviewed-by: David Gilbert <freedesk...@treblig.org> Tested-by: Jenkins diff --git a/dbaccess/source/ui/dlg/ConnectionPage.cxx b/dbaccess/source/ui/dlg/ConnectionPage.cxx index 46f577703891..c7293deea86e 100644 --- a/dbaccess/source/ui/dlg/ConnectionPage.cxx +++ b/dbaccess/source/ui/dlg/ConnectionPage.cxx @@ -101,9 +101,6 @@ namespace dbaui m_xFT_Connection->set_label(DBA_RES(STR_WRITER_PATH_OR_FILE)); m_xConnectionURL->set_help_id(HID_DSADMIN_WRITER_PATH); break; - case ::dbaccess::DST_ADO: - m_xFT_Connection->set_label(DBA_RES(STR_COMMONURL)); - break; case ::dbaccess::DST_MSACCESS: m_xFT_Connection->set_label(DBA_RES(STR_MSACCESS_MDB_FILE)); m_xConnectionURL->set_help_id(HID_DSADMIN_MSACCESS_MDB_FILE); @@ -150,6 +147,7 @@ namespace dbaui } m_xConnectionURL->hide(); break; + case ::dbaccess::DST_ADO: case ::dbaccess::DST_JDBC: default: m_xFT_Connection->set_label(DBA_RES(STR_COMMONURL));