From 5aa3f30a8e7dccd974f5ecd491663fb123005509 Mon Sep 17 00:00:00 2001 From: Bogdan Buzea Date: Fri, 18 Oct 2024 06:58:48 +0200 Subject: tdf#163486: PVS: Identical branches Change-Id: I4afca4f9d7eb8968dc7a2465222f7c2060f10bd4 V1037: Two or more case-branches perform the same actions. Check lines: 178, 194 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175055 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- chart2/source/controller/main/ChartController_Window.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'chart2/source') diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx index 86bdf100a73e..b9d4a4372f15 100644 --- a/chart2/source/controller/main/ChartController_Window.cxx +++ b/chart2/source/controller/main/ChartController_Window.cxx @@ -175,6 +175,7 @@ OUString lcl_getFormatCommandForObjectCID( std::u16string_view rCID ) aDispatchCommand = ".uno:FormatTitle"; break; case OBJECTTYPE_LEGEND_ENTRY: + case OBJECTTYPE_DATA_SERIES: aDispatchCommand = ".uno:FormatDataSeries"; break; case OBJECTTYPE_AXIS: @@ -190,9 +191,6 @@ OUString lcl_getFormatCommandForObjectCID( std::u16string_view rCID ) case OBJECTTYPE_DATA_LABELS: aDispatchCommand = ".uno:FormatDataLabels"; break; - case OBJECTTYPE_DATA_SERIES: - aDispatchCommand = ".uno:FormatDataSeries"; - break; case OBJECTTYPE_DATA_LABEL: aDispatchCommand = ".uno:FormatDataLabel"; break; -- cgit cib/libreoffice-5-4'>distro/cib/libreoffice-5-4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author