From 549030d96add56117bc35198d1303c059a8da21b Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 23 Mar 2013 16:58:37 +0100 Subject: coverity#704226 Logically dead code Change-Id: I24e55bea6070ce1113c5b64902dbd41c7827f91d --- editeng/source/outliner/outliner.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editeng/source/outliner') diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx index f2217eb57770..f76a5f88b67e 100644 --- a/editeng/source/outliner/outliner.cxx +++ b/editeng/source/outliner/outliner.cxx @@ -1438,10 +1438,10 @@ const SvxNumberFormat* Outliner::GetNumberFormat( sal_uInt16 nPara ) const const SvxNumberFormat* pFmt = NULL; Paragraph* pPara = pParaList->GetParagraph( nPara ); - if (pPara == NULL) + if (!pPara) return NULL; - sal_Int16 nDepth = pPara? pPara->GetDepth() : -1; + sal_Int16 nDepth = pPara->GetDepth(); if( nDepth >= 0 ) { -- cgit