diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-10-23 00:50:01 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-10-23 10:00:43 +0200 |
commit | 9fb20b53416fdaabf50861941aed7f9b9e510478 (patch) | |
tree | 07350e8089961d523555f44f66e5db9af7fa2d8a /sw | |
parent | ee21d9956b10593b5ec813308f61b190b1788ca0 (diff) |
tdf#163486: PVS: Expression is always true
V560 A part of conditional expression is always true: pRotate.
V560 A part of conditional expression is always true: pRotate.
Change-Id: Icf39c1a7e3a31fb360dde684a5ebfbc176027f6c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175450
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/wrtww8.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx index cf0e047dd9c2..5019c8c5f329 100644 --- a/sw/source/filter/ww8/wrtww8.cxx +++ b/sw/source/filter/ww8/wrtww8.cxx @@ -2106,11 +2106,11 @@ static sal_uInt16 lcl_TCFlags(SwDoc &rDoc, const SwTableBox * pBox, sal_Int32 nR 0, static_cast<const SwTextNode*>(pCNd)->GetText().getLength()); if ( const SvxCharRotateItem * pRotate = aCoreSet.GetItemIfSet(RES_CHRATR_ROTATE)) { - if(pRotate && pRotate->GetValue() == 900_deg10) + if(pRotate->GetValue() == 900_deg10) { nFlags = nFlags | 0x0004 | 0x0008; } - else if(pRotate && pRotate->GetValue() == 2700_deg10 ) + else if(pRotate->GetValue() == 2700_deg10 ) { nFlags = nFlags | 0x0004 | 0x0010; } |