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