tdf#163486: PVS: Expression is always false

V560 	A part of conditional expression is always false: pTable == nullptr.

Change-Id: Id6f9a8ff3943fecbe77a4d339b3ca76e27a86605
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176585
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli 2024-11-14 11:54:29 +01:00
parent 4cde4b4b98
commit 80cea92291

View file

@ -2136,7 +2136,7 @@ bool SwFlyFrame::IsShowUnfloatButton(SwWrtShell* pWrtSh) const
{
pTable = static_cast<const SwTabFrame*>(pLower);
++nTableCount;
if (nTableCount > 1 || pTable == nullptr)
if (nTableCount > 1)
return false;
}