diff --git a/src/AutoPilotPlugins/AutoPilotPlugin.cc b/src/AutoPilotPlugins/AutoPilotPlugin.cc index 0feb2f33fb877410dfde150a5e4c36727dbd3ee2..4da3426b1da4ff4beb842423b2fadeae32852c96 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);