<table><tr><td style="">cullmann requested changes to this revision.<br />cullmann added a comment.<br />This revision now requires changes to proceed.
</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/D23010">View Revision</a></tr></table><br /><div><div><p>I think if we touch all this, we should use in some places qAsConst (or const ... local variable) to avoid detach, see more detailed explanation here:</p>

<p><a href="https://www.kdab.com/goodbye-q_foreach/" class="remarkup-link" target="_blank" rel="noreferrer">https://www.kdab.com/goodbye-q_foreach/</a></p>

<p>(that howto is for a different kind of conversion but the hints for qAsConst are ok for this, too)</p>

<p>e.g.</p>

<p>QStringList children = config.readEntry("Children", QStringList());<br />
for (const auto& str : children) {</p>

<h2 class="remarkup-header">></h2>

<p>const QStringList children = config.readEntry("Children", QStringList());<br />
for (const auto& str : children) {</p>

<p>or</p>

<p>for (auto& pluginInfo : m_pluginList) {</p>

<h2 class="remarkup-header">></h2>

<p>for (auto& pluginInfo : qAsConst(m_pluginList)) {</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R40 Kate</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23010">https://phabricator.kde.org/D23010</a></div></div><br /><div><strong>To: </strong>gawin, Kate, cullmann<br /><strong>Cc: </strong>cullmann, kwrite-devel, Kate, univerz, domson, michaelh, ngraham, demsking, sars, dhaumann<br /></div>