tdf#163486: PVS: Identical branches

Change-Id: I01aae9395213eb09c8bea990b2b6a811f7ab2ee2
V1037: Two or more case-branches perform the same actions. Check lines: 1249, 1277
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175150
Tested-by: Jenkins
Reviewed-by: David Gilbert <freedesktop@treblig.org>
This commit is contained in:
Bogdan Buzea
2024-10-18 17:33:10 +02:00
committed by David Gilbert
parent ba08d8f3a9
commit c2308be747

View File

@@ -1246,6 +1246,9 @@ void SbRtl_TypeLen(StarBASIC *, SbxArray & rPar, bool)
case SbxDIMARRAY:
case SbxCARRAY:
case SbxUSERDEF:
case SbxOBJECT:
case SbxVARIANT:
case SbxDATAOBJECT:
nLen = 0;
break;
@@ -1271,12 +1274,6 @@ void SbRtl_TypeLen(StarBASIC *, SbxArray & rPar, bool)
nLen = 8;
break;
case SbxOBJECT:
case SbxVARIANT:
case SbxDATAOBJECT:
nLen = 0;
break;
case SbxCHAR:
case SbxBYTE:
case SbxBOOL: