tdf#163486: PVS: Expression is always true

V560 	A part of conditional expression is always true: pView.

Change-Id: I6c01996c66a0c1488080da532734c3c05820337d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176581
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli 2024-11-14 11:37:05 +01:00
parent 95bc3adf3a
commit 6454428f1d

View file

@ -1371,7 +1371,7 @@ void SdrView::MarkAll()
{
const SdrObject* pObj(rMarkList.GetMark(0)->GetMarkedSdrObj());
SdrView* pView = this;
if (pObj && pView && (pObj->GetObjInventor() == SdrInventor::Default)
if (pObj && (pObj->GetObjInventor() == SdrInventor::Default)
&& (pObj->GetObjIdentifier() == SdrObjKind::Table))
{
mxSelectionController.clear();