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>
This commit is contained in:
Bogdan Buzea
2024-10-18 09:26:43 +02:00
committed by Xisco Fauli
parent a7571ddd14
commit 5aa3f30a8e
@@ -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;