forked from qt-creator/qt-creator
Replace foreach with ranged for loop
Change-Id: I6238651d0b6ea8b932195711d3da7442158d2456 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -853,7 +853,8 @@ bool FossilPluginPrivate::submitEditorAboutToClose()
|
||||
extraOptions << "--branch" << enquotedBranch;
|
||||
}
|
||||
// Tags
|
||||
foreach (QString tag, commitWidget->tags()) {
|
||||
const QStringList tags = commitWidget->tags();
|
||||
for (const QString &tag : tags) {
|
||||
extraOptions << "--tag" << tag;
|
||||
}
|
||||
|
||||
@@ -886,7 +887,7 @@ void FossilPluginPrivate::updateActions(VcsBase::VcsBasePluginPrivate::ActionSta
|
||||
m_revertFile->setParameter(filename);
|
||||
m_statusFile->setParameter(filename);
|
||||
|
||||
foreach (QAction *repoAction, m_repositoryActionList)
|
||||
for (QAction *repoAction : qAsConst(m_repositoryActionList))
|
||||
repoAction->setEnabled(repoEnabled);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user