From 80cea922912ba83baf2e2415a0328abb9edc6a00 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Thu, 14 Nov 2024 11:54:29 +0100 Subject: [PATCH] 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 --- sw/source/core/layout/fly.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx index 42e7af795e73..ae7fdfae4326 100644 --- a/sw/source/core/layout/fly.cxx +++ b/sw/source/core/layout/fly.cxx @@ -2136,7 +2136,7 @@ bool SwFlyFrame::IsShowUnfloatButton(SwWrtShell* pWrtSh) const { pTable = static_cast(pLower); ++nTableCount; - if (nTableCount > 1 || pTable == nullptr) + if (nTableCount > 1) return false; }