summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2013-11-23 16:35:21 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2013-11-24 14:46:56 +0100
commit48264d6d478b54859482198a84afb3906ed40cb7 (patch)
tree7251f1f79825c0a3e8ce47b0854a1b117a485be2 /sw
parent0215305c13b081ab929997cbd51e829f66425afb (diff)
Improve formatting
Change-Id: I0cb8eb5b78ef5ca10d6b8765bff387ca09ec291c
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/docnode/ndsect.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/docnode/ndsect.cxx b/sw/source/core/docnode/ndsect.cxx
index f45e37450499..30cb489799ab 100644
--- a/sw/source/core/docnode/ndsect.cxx
+++ b/sw/source/core/docnode/ndsect.cxx
@@ -385,8 +385,8 @@ sal_uInt16 SwDoc::IsInsRegionAvailable( const SwPaM& rRange,
if( rRange.HasMark() )
{
// See if we have a valid Section
- const SwPosition* pStt = rRange.Start(),
- * pEnd = rRange.End();
+ const SwPosition* pStt = rRange.Start();
+ const SwPosition* pEnd = rRange.End();
const SwCntntNode* pCNd = pEnd->nNode.GetNode().GetCntntNode();
const SwNode* pNd = &pStt->nNode.GetNode();
@@ -397,9 +397,9 @@ sal_uInt16 SwDoc::IsInsRegionAvailable( const SwPaM& rRange,
// Try to create an enclosing Section, but only if Start is
// located at the Section's beginning and End at it's end
nRet = 0;
- if( !pStt->nContent.GetIndex() && pSectNd->GetIndex()
- == pStt->nNode.GetIndex() - 1 && pEnd->nContent.GetIndex() ==
- pCNd->Len() )
+ if( !pStt->nContent.GetIndex()
+ && pSectNd->GetIndex() == pStt->nNode.GetIndex() - 1
+ && pEnd->nContent.GetIndex() == pCNd->Len() )
{
SwNodeIndex aIdx( pStt->nNode, -1 );
sal_uLong nCmp = pEnd->nNode.GetIndex();