<table><tr><td style="">tcanabrava created this revision.<br />tcanabrava added reviewers: kfunk, apol.<br />Restricted Application added a subscriber: kdevelop-devel.
</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/D4101" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The GUIenabled variable is just used if not in KDEVELOP_SINGLE_APP<br />
mode, but silencing the warning with unguarded-ifs unclutters the<br />
code a bit and has no sideeffects.</p>

<p>Use brace-initialization for QStringList</p>

<p>No need to test for isEmpty before using Q_FOREACH</p>

<p>If the container is empty, it will just do anything<br />
on the foreach macro. this also reduces the indentation<br />
level a bit.</p>

<p>Rename variable p to project</p>

<p>The outer loop has a variable named p, and while C++ accepts<br />
that inner variables have biggest priority than outer<br />
variables, this could be a potential human mistake.</p>

<p>Replace 8 ocorrencies of const char* to QString to a single QString</p>

<p>QString is UTF_16 internally, so creating just one QString<br />
for a given string is better than runtime-creating a few more<br />
via const char*.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>compiled and tested</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>BRANCH</strong><div><div>cleanup</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D4101" rel="noreferrer">https://phabricator.kde.org/D4101</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>app/main.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>tcanabrava, kfunk, apol<br /><strong>Cc: </strong>kdevelop-devel<br /></div>