<table><tr><td style="">kossebau added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D23661">View Revision</a></tr></table><br /><div><div><p>There are quite a lot of foreachs in ktexteditor, so IMHO it makes sense to split up the porting in multiple commits, so in case of regressions one can bisect in the overall changes a bit and then has fewer changes to reason about where something might have been broken.<br />
So my plan for further commits is:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">one commit where method-local copies would be made explicit ,where currently they are done implicitly in the foreach() by some call -> minimal risk, as not shared</li>
<li class="remarkup-list-item">commits where new structures are generated by iterating shared containers, without method calls which might modify the containers potentially</li>
<li class="remarkup-list-item">commits per classes/submodules where each change needs careful review, as recursive non-const calls happen</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23661">https://phabricator.kde.org/D23661</a></div></div><br /><div><strong>To: </strong>kossebau, Kate<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, LeGast00n, GB_2, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>