<table><tr><td style="">tcanabrava created this revision.<br />Restricted Application added a project: Konsole.<br />Restricted Application added a subscriber: konsole-devel.<br />tcanabrava requested review of this revision.
</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/D13532">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Favor manual list creator over for loop for small list</p>

<p>Three items, create them manually, cleaner and less<br />
computationally expensive.</p>

<p>Btw - this is ugly, both ways. I blame QStandardItemModel.</p>

<p>Simplify Logic</p>

<p>Use auto when types are explicit</p>

<p>Simplify Logic: use ternary when it improves readability</p>

<p>Stack when heap's uneeded.</p>

<p>There's absolutely no point on creating a QPointer<br />
and manually deleting the item later. Just create<br />
the variable on the stack</p>

<p>Auto when type's explicit</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R319 Konsole</div></div></div><br /><div><strong>BRANCH</strong><div><div>ProfileSettingsCleanup</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D13532">https://phabricator.kde.org/D13532</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/settings/ProfileSettings.cpp<br />
src/settings/ProfileSettings.h</div></div></div><br /><div><strong>To: </strong>tcanabrava<br /><strong>Cc: </strong>konsole-devel, herrold, ngraham, maximilianocuria, hindenburg<br /></div>