Kaydet (Commit) 2af62a74 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

move into the loop and constify

Change-Id: I8544755a1b1a32fdf85823e50cf5db6c4909b485
üst c28c6126
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment