diff options
author | Bogdan Buzea <buzea.bogdan@libreoffice.org> | 2024-10-18 06:58:48 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-10-18 09:26:43 +0200 |
commit | 5aa3f30a8e7dccd974f5ecd491663fb123005509 (patch) | |
tree | 47bd6d9d67cb681b89982d17ecc01bf2e9440c74 /chart2/source | |
parent | a7571ddd146bba9b25708da288f898e5cd221f8d (diff) |
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 <xiscofauli@libreoffice.org>
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/controller/main/ChartController_Window.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
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; |