<table><tr><td style="">ahmadsamir updated this revision to Diff 68395.<br />ahmadsamir edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-g6eft5eslvg5ni2/">(Show Details)</a><br />ahmadsamir 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/D24350">View Revision</a></tr></table><br /><div><div><p>In private API we can have a method return a const &, as it can be<br />
changed later without side-effects.</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">Add convience function tha</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Change addresses() to make i</span>t return<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">s</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> a</span> const QList<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">&</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> &</span>, <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">since that list is</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">this way it can</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">be </span>iterated over<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);"> in several places in the code</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">, with a range-for, without detaching</span>.</div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D24350?vs=67152&id=68395">https://phabricator.kde.org/D24350?vs=67152&id=68395</a></div></div><br /><div><strong>BRANCH</strong><div><div>ahmad/foreach-kpac (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D24350">https://phabricator.kde.org/D24350</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/kpac/script.cpp</div></div></div><br /><div><strong>To: </strong>ahmadsamir, dfaure<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns<br /></div>