summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-03-23 16:58:37 +0100
committerJulien Nabet <serval2412@yahoo.fr>2013-03-23 16:58:52 +0100
commit549030d96add56117bc35198d1303c059a8da21b (patch)
tree1d4404e4c5f918f9460bb7e824edb5f104ab7537 /editeng
parentc088ec0bdb6245c472f79417d14d487e5c5e0d09 (diff)
coverity#704226 Logically dead code
Change-Id: I24e55bea6070ce1113c5b64902dbd41c7827f91d
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/outliner/outliner.cxx4
1 files changed, 2 insertions, 2 deletions
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 )
{