diff --git a/src/AutoPilotPlugins/AutoPilotPlugin.cc b/src/AutoPilotPlugins/AutoPilotPlugin.cc index 4da3426b1da4ff4beb842423b2fadeae32852c96..40fd4713abe8d820e8d15efc2773b5fa66c841f5 100644 --- a/src/AutoPilotPlugins/AutoPilotPlugin.cc +++ b/src/AutoPilotPlugins/AutoPilotPlugin.cc @@ -33,7 +33,7 @@ void AutoPilotPlugin::_recalcSetupComplete(void) { bool newSetupComplete = true; - for(const QVariant componentVariant: vehicleComponents()) { + for(const QVariant& componentVariant: vehicleComponents()) { VehicleComponent* component = qobject_cast(qvariant_cast(componentVariant)); if (component) { if (!component->setupComplete()) {