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

use C++11 iteration

Change-Id: I28b69849c3e69bfbe691e1bf4fd3dfc1dbf8d9bf
üst 0777dbef
......@@ -3022,17 +3022,14 @@ bool SwCrsrShell::HasReadonlySel(bool bAnnotationMode) const
}
else
{
const SwPaM* pCrsr = m_pCurCrsr;
do
for(const SwPaM& rCrsr : m_pCurCrsr->GetRingContainer())
{
if( pCrsr->HasReadonlySel( GetViewOptions()->IsFormView(), bAnnotationMode ) )
if( rCrsr.HasReadonlySel( GetViewOptions()->IsFormView(), bAnnotationMode ) )
{
bRet = true;
break;
}
pCrsr = static_cast<SwPaM*>(pCrsr->GetNext());
} while ( !bRet && pCrsr != m_pCurCrsr );
}
}
}
return bRet;
......
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