editeng/source/items/textitem.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit b18d007ad8073c57db5bc1eef9c1e326b9ed163c Author: Bogdan Buzea <buzea.bog...@libreoffice.org> AuthorDate: Mon Oct 21 08:31:02 2024 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Nov 4 07:06:38 2024 +0100 tdf#163486: PVS: Identical branches V1037 Two or more case-branches perform the same actions. Check lines: 815, 819 Change-Id: I86c8065de5bb83671bcc499bb46b5e5723ec01d0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175277 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx index a4ad9f8847f8..59cb17053a72 100644 --- a/editeng/source/items/textitem.cxx +++ b/editeng/source/items/textitem.cxx @@ -811,11 +811,9 @@ static sal_uInt32 lcl_GetRealHeight_Impl(sal_uInt32 nHeight, sal_uInt16 nProp, M break; } case MapUnit::Map100thMM: - //then the core is surely also in 1/100 mm - nDiff = static_cast<short>(nProp); - break; + //then the core is surely also in 1/100 mm case MapUnit::MapTwip: - // Here surely TWIP + // Here surely TWIP nDiff = static_cast<short>(nProp); break; default: