chart2/source/controller/dialogs/res_ErrorBar.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit f48045f718ce90a693789bd3dd8cd544c72a680c
Author:     Bogdan Buzea <buzea.bog...@libreoffice.org>
AuthorDate: Fri Oct 18 16:52:46 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Fri Oct 18 19:54:48 2024 +0200

    tdf#163486: PVS: Identical branches
    
    Change-Id: Ibe65f4eca6009e8be4355974cdf33b5cabbe03e5
    V1037: Two or more case-branches perform the same actions. Check lines: 54, 
60
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175144
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/chart2/source/controller/dialogs/res_ErrorBar.cxx 
b/chart2/source/controller/dialogs/res_ErrorBar.cxx
index 1b77d23dcefd..1e30311ae28b 100644
--- a/chart2/source/controller/dialogs/res_ErrorBar.cxx
+++ b/chart2/source/controller/dialogs/res_ErrorBar.cxx
@@ -51,14 +51,12 @@ sal_uInt16 lcl_getLbEntryPosByErrorKind( SvxChartKindError 
eErrorKind )
         case SvxChartKindError::Percent:
         case SvxChartKindError::Const:
         case SvxChartKindError::Range:
+        case SvxChartKindError::Sigma:
             nResult = CHART_LB_FUNCTION_STD_DEV;
             break;
         case SvxChartKindError::Variant:
             nResult = CHART_LB_FUNCTION_VARIANCE;
             break;
-        case SvxChartKindError::Sigma:
-            nResult = CHART_LB_FUNCTION_STD_DEV;
-            break;
         case SvxChartKindError::BigError:
             nResult = CHART_LB_FUNCTION_ERROR_MARGIN;
             break;

Reply via email to