tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 544, 552 V1037 Two or more case-branches perform the same actions. Check lines: 923, 929 V1037 Two or more case-branches perform the same actions. Check lines: 993, 1001 Change-Id: I373ccdb56bee8d446e2aec3295ba9c0fb23ff82a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175229 Reviewed-by: David Gilbert <freedesktop@treblig.org> Tested-by: Jenkins
This commit is contained in:
parent
fa1902c464
commit
27805424cc
1 changed files with 3 additions and 9 deletions
|
@ -540,12 +540,10 @@ namespace oox::ppt {
|
|||
sal_Int16 nEnum = 0;
|
||||
switch(nCalcMode)
|
||||
{
|
||||
case XML_discrete:
|
||||
nEnum = AnimationCalcMode::DISCRETE;
|
||||
break;
|
||||
case XML_lin:
|
||||
nEnum = AnimationCalcMode::LINEAR;
|
||||
break;
|
||||
case XML_discrete:
|
||||
case XML_fmla:
|
||||
default:
|
||||
// TODO what value is good ?
|
||||
|
@ -919,12 +917,10 @@ namespace oox::ppt {
|
|||
case PPT_TOKEN( animClr ):
|
||||
pCtx = new AnimColorContext( rParent, aElement, xAttribs, pNode );
|
||||
break;
|
||||
case PPT_TOKEN( par ):
|
||||
pCtx = new ParallelExclTimeNodeContext( rParent, aElement, pNode );
|
||||
break;
|
||||
case PPT_TOKEN( seq ):
|
||||
pCtx = new SequenceTimeNodeContext( rParent, aElement, xAttribs, pNode );
|
||||
break;
|
||||
case PPT_TOKEN( par ):
|
||||
case PPT_TOKEN( excl ):
|
||||
pCtx = new ParallelExclTimeNodeContext( rParent, aElement, pNode );
|
||||
break;
|
||||
|
@ -989,12 +985,10 @@ namespace oox::ppt {
|
|||
|
||||
switch( aElementToken )
|
||||
{
|
||||
case PPT_TOKEN( par ):
|
||||
nNodeType = AnimationNodeType::PAR;
|
||||
break;
|
||||
case PPT_TOKEN( seq ):
|
||||
nNodeType = AnimationNodeType::SEQ;
|
||||
break;
|
||||
case PPT_TOKEN( par ):
|
||||
case PPT_TOKEN( excl ):
|
||||
// TODO pick the right type. We choose parallel for now as
|
||||
// there does not seem to be an "Exclusive"
|
||||
|
|
Loading…
Reference in a new issue