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:
parent
84f85e8ad1
commit
9e3803ae43
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue