forked from qt-creator/qt-creator
Git: Eradicate Q_FOREACH loops
Change-Id: I29b6071ea244d1b3ae0701d36c90b1e93cf21fbb Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
e3eee3b2b9
commit
e366e135b7
@@ -161,7 +161,8 @@ bool LogChangeWidget::populateLog(const QString &repository, const QString &comm
|
||||
QString output;
|
||||
if (!GitPlugin::client()->synchronousLog(repository, arguments, &output, 0, VcsCommand::NoOutput))
|
||||
return false;
|
||||
foreach (const QString &line, output.split('\n')) {
|
||||
const QStringList lines = output.split('\n');
|
||||
for (const QString &line : lines) {
|
||||
const int colonPos = line.indexOf(':');
|
||||
if (colonPos != -1) {
|
||||
QList<QStandardItem *> row;
|
||||
|
||||
Reference in New Issue
Block a user