summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-23 21:50:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-07-23 22:04:49 +0100
commitf54ca31d2900e6592ffc22888d0f2475a75630dc (patch)
tree22f78835e29855b3bcab6426a758b44c13db1785 /sw
parent13f80252de289b666b5df126e1ec8a9c99445bac (diff)
make this more readable
Change-Id: I617e7a120aa14794c7391969b3edd6e3c4f50077
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/sectfrm.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/layout/sectfrm.cxx b/sw/source/core/layout/sectfrm.cxx
index 23b547f64ec1..cd0d3002cddc 100644
--- a/sw/source/core/layout/sectfrm.cxx
+++ b/sw/source/core/layout/sectfrm.cxx
@@ -1763,8 +1763,7 @@ SwLayoutFrame *SwFrame::GetPrevSctLeaf()
}
{
- SwFrame *pPrv;
- if( nullptr != ( pPrv = pSect->GetIndPrev() ) )
+ if (SwFrame *pPrv = pSect->GetIndPrev())
{
// Mooching, half dead SectionFrames shouldn't confuse us
while( pPrv && pPrv->IsSctFrame() && !static_cast<SwSectionFrame*>(pPrv)->GetSection() )