diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-09-01 09:36:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-09-01 10:40:14 +0100 |
commit | ac192a7ef116e6453fee7872b558ff957e377c50 (patch) | |
tree | 2f4a8ac12c1a78bc73115b03edcc28d51c7a74f6 /sw | |
parent | 1d07d8fb5ee361be5e15c753ddbde2f26fefe393 (diff) |
coverity#1372379 this can be a real assert cause we deref it afterwards
Change-Id: Ic80132c5fa94d935910c1cfdb03f696b2812676a
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/docnode/ndtbl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx index 9ebeb535798d..6fad99458f86 100644 --- a/sw/source/core/docnode/ndtbl.cxx +++ b/sw/source/core/docnode/ndtbl.cxx @@ -3408,7 +3408,7 @@ SwTableNode* SwNodes::SplitTable( const SwNodeIndex& rPos, bool bAfter, SwTableNode * pNewTableNd; { SwEndNode* pOldTableEndNd = pTNd->EndOfSectionNode()->GetEndNode(); - OSL_ENSURE( pOldTableEndNd, "Where is the EndNode?" ); + assert(pOldTableEndNd && "Where is the EndNode?"); SwNodeIndex aIdx( *pBox->GetSttNd() ); new SwEndNode( aIdx, *pTNd ); |