forked from qt-creator/qt-creator
Meson: Replace most std::for_each by range based for
Change-Id: I18aa38bb84264e0f6a99f431c1caaded9bbbe248 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user