diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-06 16:57:55 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-07 10:22:17 +0000 |
commit | 25d6c8d2fd5caa097f3edbd7531dbc14e8357574 (patch) | |
tree | 50baee99cfe2089cb547ac9a7069f849149ff720 /sw | |
parent | 215207f480258b37864a88e1b831055e148adf65 (diff) |
coverity#708845 help coverity out here
Change-Id: I1e8ec236c44e258124eaeb818fcd39e7bf15c4b9
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/docnode/ndsect.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/docnode/ndsect.cxx b/sw/source/core/docnode/ndsect.cxx index 344305010200..951285925a9a 100644 --- a/sw/source/core/docnode/ndsect.cxx +++ b/sw/source/core/docnode/ndsect.cxx @@ -1063,8 +1063,9 @@ void SwSectionNode::MakeFrms(const SwNodeIndex & rIdx ) if( !pCNd ) { aIdx = *this; - if( 0 == ( pCNd = rNds.GoPrevSection( &aIdx, true, false )) ) - return ; + pCNd = rNds.GoPrevSection(&aIdx, true, false); + if (!pCNd) + return; } pCNd = aIdx.GetNode().GetCntntNode(); pCNd->MakeFrms( (SwCntntNode&)rIdx.GetNode() ); |