tdf#163486: PVS: Identical branches

V1037 Two or more case-branches perform the same actions. Check lines: 609, 637

Change-Id: I4376e86a5484886025152a9a407b23b3d05c3911
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175355
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
This commit is contained in:
Bogdan Buzea 2024-10-21 17:29:49 +02:00 committed by David Gilbert
parent 84f85e8ad1
commit 9e3803ae43

View file

@ -606,6 +606,7 @@ void SwGetRefField::UpdateField(const SwTextField* pFieldTextAttr, SwFrame* pFra
break;
case REF_OUTLINE:
case REF_SETREFATTR:
nStart = nNumStart;
nEnd = nNumEnd;
break;
@ -633,11 +634,6 @@ void SwGetRefField::UpdateField(const SwTextField* pFieldTextAttr, SwFrame* pFra
nEnd = nLen;
break;
case REF_SETREFATTR:
nStart = nNumStart;
nEnd = nNumEnd;
break;
default:
O3TL_UNREACHABLE;
}