diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-07-25 01:03:51 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-07-25 09:47:54 +0200 |
commit | 2af62a7469eb9bb8a3ad7807398f24e291fc08ee (patch) | |
tree | bdfb94b13078a3d46599b687264aedef8a45d525 | |
parent | c28c6126dc96f57aec29a3fa25df5ba4ab5f28f8 (diff) |
move into the loop and constify
Change-Id: I8544755a1b1a32fdf85823e50cf5db6c4909b485
-rw-r--r-- | sw/source/core/doc/CntntIdxStore.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/doc/CntntIdxStore.cxx b/sw/source/core/doc/CntntIdxStore.cxx index 03e33efd560f..42ae9790a5ed 100644 --- a/sw/source/core/doc/CntntIdxStore.cxx +++ b/sw/source/core/doc/CntntIdxStore.cxx @@ -292,10 +292,9 @@ void CntntIdxStoreImpl::SaveRedlines(SwDoc* pDoc, sal_uLong nNode, sal_Int32 nCn void CntntIdxStoreImpl::RestoreRedlines(SwDoc* pDoc, updater_t& rUpdater) { const SwRedlineTbl& rRedlTbl = pDoc->GetRedlineTbl(); - SwPosition* pPos = NULL; BOOST_FOREACH(const MarkEntry& aEntry, m_aRedlineEntries) { - pPos = (SwPosition*)( aEntry.m_bOther + SwPosition* const pPos = (SwPosition*)( aEntry.m_bOther ? rRedlTbl[ aEntry.m_nIdx ]->GetMark() : rRedlTbl[ aEntry.m_nIdx ]->GetPoint()); rUpdater(*pPos, aEntry.m_nCntnt); |