diff options
author | Bogdan Buzea <buzea.bogdan@libreoffice.org> | 2024-10-20 20:42:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-11-04 07:06:55 +0100 |
commit | dce64cc7cfd5f696ef0c030524558306687ae3c7 (patch) | |
tree | a9ffc9f924c25bc6a5af71245a41bf3066242f3f | |
parent | b18d007ad8073c57db5bc1eef9c1e326b9ed163c (diff) |
tdf#163486: PVS: Identical branches
V1037 Two or more case-branches perform the same actions. Check lines: 883, 893
Change-Id: Ie722bffb7aa8cbdb38a5b1a244f5c5a072c26c8d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175263
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | sw/source/filter/ww8/ww8par3.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx index 354f32ac4f86..41604594f92e 100644 --- a/sw/source/filter/ww8/ww8par3.cxx +++ b/sw/source/filter/ww8/ww8par3.cxx @@ -880,6 +880,7 @@ bool WW8ListManager::ReadLVL(SwNumFormat& rNumFormat, std::unique_ptr<SfxItemSet switch( aLVL.nAlign ) { case 0: + case 3: // Writer here cannot do block justification eAdj = SvxAdjust::Left; break; case 1: @@ -888,10 +889,6 @@ bool WW8ListManager::ReadLVL(SwNumFormat& rNumFormat, std::unique_ptr<SfxItemSet case 2: eAdj = SvxAdjust::Right; break; - case 3: - // Writer here cannot do block justification - eAdj = SvxAdjust::Left; - break; default: // undefined value OSL_ENSURE( false, "Value of aLVL.nAlign is not supported" ); |