From b5d7f596f26e3e086a6584fe69a8bbcc9c51d0bd Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Sun, 4 Nov 2018 21:30:56 +0300 Subject: tdf#120703 PVS: V547 Expression is always true/false Change-Id: I4b48dddeaabf6b321196b537bb7aa55a89ab8fe3 Reviewed-on: https://gerrit.libreoffice.org/62863 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- sd/source/ui/view/outlview.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sd/source') diff --git a/sd/source/ui/view/outlview.cxx b/sd/source/ui/view/outlview.cxx index 544785643416..c2b3576dbfce 100644 --- a/sd/source/ui/view/outlview.cxx +++ b/sd/source/ui/view/outlview.cxx @@ -1474,8 +1474,7 @@ void OutlineView::UpdateDocument() mrOutlineViewShell.UpdateTitleObject( pPage, pPara ); mrOutlineViewShell.UpdateOutlineObject( pPage, pPara ); - if( pPara ) - pPara = GetNextTitle(pPara); + pPara = GetNextTitle(pPara); } } -- cgit