From bdb6e648d20ec4cb8bbc62308e2368531ea1e42b Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Sat, 28 Nov 2015 04:55:01 +0100 Subject: clean up and reduce indent levels Change-Id: I5aa38475eff213620b29e89a0df0833c95207a91 --- sw/source/core/unocore/unostyle.cxx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'sw/source/core/unocore/unostyle.cxx') diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx index d3cda0971127..5236631f84e8 100644 --- a/sw/source/core/unocore/unostyle.cxx +++ b/sw/source/core/unocore/unostyle.cxx @@ -466,16 +466,14 @@ sal_Int32 lcl_GetCountOrNameImpl(const SwDoc& rDoc, OUStr for(size_t i = 0; i < nArrLen; ++i) { const SwPageDesc& rDesc = rDoc.GetPageDesc(i); - - if ( IsPoolUserFormat ( rDesc.GetPoolFormatId() ) ) + if(!IsPoolUserFormat(rDesc.GetPoolFormatId())) + continue; + if(nIndex == nCount) { - if ( nIndex == nCount ) - { - *pString = rDesc.GetName(); - break; - } - ++nCount; + *pString = rDesc.GetName(); + break; } + ++nCount; } nCount += nPoolPageRange; return nCount; -- cgit v1.2.3