Meson: Replace most std::for_each by range based for

Change-Id: I18aa38bb84264e0f6a99f431c1caaded9bbbe248
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alexis Jeandet
2020-10-27 17:58:55 +01:00
parent 36632330ca
commit cfcfb304fa
7 changed files with 61 additions and 84 deletions

View File

@@ -116,9 +116,9 @@ bool ToolKitAspectWidget::isCompatible(const MesonTools::Tool_t &tool)
void ToolKitAspectWidget::loadTools()
{
std::for_each(std::cbegin(MesonTools::tools()),
std::cend(MesonTools::tools()),
[this](const MesonTools::Tool_t &tool) { addTool(tool); });
for (const MesonTools::Tool_t &tool : MesonTools::tools()) {
addTool(tool);
}
refresh();
m_toolsComboBox->setEnabled(m_toolsComboBox->count());
}