Commit 79a18b13 authored by Patrick José Pereira's avatar Patrick José Pereira

AutoPilotPlugin: Use reference in for loop

Signed-off-by: 's avatarPatrick José Pereira <>
parent fce935ff
......@@ -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<VehicleComponent*>(qvariant_cast<QObject *>(componentVariant));
if (component) {
if (!component->setupComplete()) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment