summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-06 16:57:55 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-07 10:22:17 +0000
commit25d6c8d2fd5caa097f3edbd7531dbc14e8357574 (patch)
tree50baee99cfe2089cb547ac9a7069f849149ff720 /sw
parent215207f480258b37864a88e1b831055e148adf65 (diff)
coverity#708845 help coverity out here
Change-Id: I1e8ec236c44e258124eaeb818fcd39e7bf15c4b9
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/docnode/ndsect.cxx5
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() );