From 7e3cf7c716050285924b52584ccabd5697f9d3c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Tue, 23 Oct 2018 22:00:40 -0300 Subject: [PATCH] AutoPilotPlugins: Change from foreach to c++11 for MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/AutoPilotPlugins/AutoPilotPlugin.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AutoPilotPlugins/AutoPilotPlugin.cc b/src/AutoPilotPlugins/AutoPilotPlugin.cc index 0feb2f33f..4da3426b1 100644 --- a/src/AutoPilotPlugins/AutoPilotPlugin.cc +++ b/src/AutoPilotPlugins/AutoPilotPlugin.cc @@ -33,7 +33,7 @@ void AutoPilotPlugin::_recalcSetupComplete(void) { bool newSetupComplete = true; - foreach(const QVariant componentVariant, vehicleComponents()) { + for(const QVariant componentVariant: vehicleComponents()) { VehicleComponent* component = qobject_cast(qvariant_cast(componentVariant)); if (component) { if (!component->setupComplete()) { @@ -61,7 +61,7 @@ void AutoPilotPlugin::parametersReadyPreChecks(void) _recalcSetupComplete(); // Connect signals in order to keep setupComplete up to date - foreach(const QVariant componentVariant, vehicleComponents()) { + for(const QVariant componentVariant: vehicleComponents()) { VehicleComponent* component = qobject_cast(qvariant_cast(componentVariant)); if (component) { connect(component, &VehicleComponent::setupCompleteChanged, this, &AutoPilotPlugin::_recalcSetupComplete); -- 2.22.0