Kaydet (Commit) 45301b7e authored tarafından Michael Stahl's avatar Michael Stahl

sw_redlinehide: use unwrapping SwIterator when iterating SwModify

... that could be a SwTextNode, too.

Change-Id: I5627564966ce331b07b69010d42d61ff8a04364c
üst b8c67547
......@@ -310,7 +310,7 @@ namespace
void lcl_LOKInvalidateFrames(const SwModify& rMod, const SwRootFrame* pLayout,
SwFrameType const nFrameType, const Point* pPoint)
{
SwIterator<SwFrame,SwModify> aIter( rMod );
SwIterator<SwFrame, SwModify, sw::IteratorMode::UnwrapMulti> aIter(rMod);
for (SwFrame* pTmpFrame = aIter.First(); pTmpFrame; pTmpFrame = aIter.Next() )
{
......
......@@ -1836,7 +1836,7 @@ void SwDrawContact::ConnectToLayout( const SwFormatAnchor* pAnch )
break;
}
SwIterator<SwFrame,SwModify> aIter( *pModify );
SwIterator<SwFrame, SwModify, sw::IteratorMode::UnwrapMulti> aIter(*pModify);
SwFrame* pAnchorFrameOfMaster = nullptr;
for( SwFrame *pFrame = aIter.First(); pFrame; pFrame = aIter.Next() )
{
......
......@@ -3232,7 +3232,7 @@ SwFrame* GetFrameOfModify( const SwRootFrame* pLayout, SwModify const& rMod, SwF
SwRect aCalcRect;
bool bClientIterChanged = false;
SwIterator<SwFrame,SwModify> aIter( rMod );
SwIterator<SwFrame, SwModify, sw::IteratorMode::UnwrapMulti> aIter(rMod);
do {
pMinFrame = nullptr;
aHolder.Reset();
......@@ -3424,7 +3424,7 @@ bool SwDeletionChecker::HasBeenDeleted()
if ( !mpFrame || !mpRegIn )
return false;
SwIterator<SwFrame,SwModify> aIter(*mpRegIn);
SwIterator<SwFrame, SwModify, sw::IteratorMode::UnwrapMulti> aIter(*mpRegIn);
SwFrame* pLast = aIter.First();
while ( pLast )
{
......
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