<table><tr><td style="">alex 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/D27052">View Revision</a></tr></table><br /><div><div><p>Hello,<br />
I have a question regarding your changed.</p>
<p>you sometimes declare the variables you want to loop over before the loop, but sometimes in the loop.<br />
For instance in DeviceModel.cpp line 135 it is declared as a const before the loop and in line 139 it is directly used in the loop.</p>
<p>In one of my previous revisions I have implemented it like in line 139 and <a href="https://phabricator.kde.org/D26912?id=74352#inline-152211" class="remarkup-link" target="_blank" rel="noreferrer">https://phabricator.kde.org/D26912?id=74352#inline-152211</a> and changes were requested.</p>
<p>Am I missing conceptual differences between these use cases ?</p>
<p>Thanks again for your expertise !</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27052">https://phabricator.kde.org/D27052</a></div></div><br /><div><strong>To: </strong>meven, broulik, ervin, Plasma<br /><strong>Cc: </strong>alex, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>