Kaydet (Commit) 8347b140 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

use C++11 iteration

Change-Id: If660a785dba2fd6c2e53a9bc0b93042359f5eaa7
üst 6fa11c72
......@@ -59,14 +59,11 @@ const SwRangeRedline& SwEditShell::GetRedline( sal_uInt16 nPos ) const
static void lcl_InvalidateAll( SwViewShell* pSh )
{
SwViewShell *pStop = pSh;
do
for(SwViewShell& rCurrentShell : pSh->GetRingContainer())
{
if ( pSh->GetWin() )
pSh->GetWin()->Invalidate();
pSh = static_cast<SwViewShell*>(pSh->GetNext());
} while ( pSh != pStop );
if ( rCurrentShell.GetWin() )
rCurrentShell.GetWin()->Invalidate();
}
}
bool SwEditShell::AcceptRedline( sal_uInt16 nPos )
......
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