tdf#163486: PVS: Identical branches

V1037 Two or more case-branches perform the same actions. Check lines: 632, 642. But it seems FRAME case was omitted, based on the above switch (line 591).

Change-Id: I781aa8b47bdc969fa8e3e20297c94da71919a33f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175351
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Bogdan Buzea 2024-10-21 17:10:19 +02:00 committed by David Gilbert
parent 665dce4442
commit dea5d561ba

View file

@ -629,7 +629,7 @@ ScVbaShape::setRelativeHorizontalPosition(::sal_Int32 _relativehorizontalpositio
}
case word::WdRelativeHorizontalPosition::wdRelativeHorizontalPositionColumn:
{
nType = text::RelOrientation::PAGE_FRAME;
nType = text::RelOrientation::FRAME;
break;
}
case word::WdRelativeHorizontalPosition::wdRelativeHorizontalPositionMargin: