summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/docbm.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-01-29 13:14:20 +0100
committerMichael Stahl <mstahl@redhat.com>2015-01-29 21:48:14 +0100
commit4704f3d84f5ecf2f7c9334552510679b2ad9fd8f (patch)
treec58a8a207ec310d6bdd843a48bf9eae8ac490cb4 /sw/source/core/doc/docbm.cxx
parent5d3ce204d54870f3ac7b675ec044979a598b8262 (diff)
sw: remove some pointless verbosity
Change-Id: I3a012cfd9ba8c8c331d025f56f590a74941f71dd
Diffstat (limited to 'sw/source/core/doc/docbm.cxx')
-rw-r--r--sw/source/core/doc/docbm.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index 024fbd55b24e..d0f71e93a36e 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -1352,12 +1352,8 @@ void _DelBookmarks(
// Is at position?
SwRangeRedline* pRedl = rTbl[ nCnt ];
- SwPosition *pRStt = &pRedl->GetBound(true),
- *pREnd = &pRedl->GetBound(false);
- if( *pRStt > *pREnd )
- {
- SwPosition *pTmp = pRStt; pRStt = pREnd, pREnd = pTmp;
- }
+ SwPosition *const pRStt = pRedl->Start();
+ SwPosition *const pREnd = pRedl->End();
if( lcl_Greater( *pRStt, rStt, pSttIdx ) && lcl_Lower( *pRStt, rEnd, pEndIdx ))
{