forked from qt-creator/qt-creator
Add whitespace after control keywords
find -name \*.cpp -o -name \*.h | \ xargs sed -Ei 's/ (for|foreach|if|switch|while)\(/ \1 (/g' Change-Id: I9efdff4bf0c8c01a52baaaeb75198483c77b0390 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
3747e941ad
commit
a44aa55502
@@ -50,7 +50,7 @@ QDebug operator<<(QDebug d, const CvsLogEntry &e)
|
||||
{
|
||||
QDebug nospace = d.nospace();
|
||||
nospace << "File: " << e.file << e.revisions.size() << '\n';
|
||||
foreach(const CvsRevision &r, e.revisions)
|
||||
foreach (const CvsRevision &r, e.revisions)
|
||||
nospace << " " << r.revision << ' ' << r.date << ' ' << r.commitId << '\n';
|
||||
return d;
|
||||
}
|
||||
@@ -93,7 +93,7 @@ QList<CvsLogEntry> parseLogEntries(const QString &o,
|
||||
|
||||
// Parse using a state enumeration and regular expressions as not to fall for weird
|
||||
// commit messages in state 'RevisionState'
|
||||
foreach(const QString &line, lines) {
|
||||
foreach (const QString &line, lines) {
|
||||
switch (state) {
|
||||
case FileState:
|
||||
if (line.startsWith(workingFilePrefix)) {
|
||||
|
||||
Reference in New Issue
Block a user