svx/source/unodraw/unopage.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 4cde4b4b980de4102745516c48dd64e6b388e893 Author: Xisco Fauli <xiscofa...@libreoffice.org> AuthorDate: Thu Nov 14 13:06:45 2024 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Thu Nov 14 14:59:33 2024 +0100 tdf#163486: PVS: Expression is always true V560 A part of conditional expression is always true: mpPage. Change-Id: If132fa2d5116ec3517846e026bfd3f76ef2cd9a1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176591 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx index e516e990cf80..149058d02c86 100644 --- a/svx/source/unodraw/unopage.cxx +++ b/svx/source/unodraw/unopage.cxx @@ -353,7 +353,7 @@ sal_Bool SAL_CALL SvxDrawPage::hasElements() if( (mpModel == nullptr) || (mpPage == nullptr) ) throw lang::DisposedException(); - return mpPage && mpPage->GetObjCount()>0; + return mpPage->GetObjCount()>0; } namespace