diff --git a/src/AutoPilotPlugins/PX4/PowerComponent.cc b/src/AutoPilotPlugins/PX4/PowerComponent.cc index e5fae6fc12429733dfa5fb0b875d449bf3086e54..0f06f5418eaf7d75fe207be614915be349fdcc3b 100644 --- a/src/AutoPilotPlugins/PX4/PowerComponent.cc +++ b/src/AutoPilotPlugins/PX4/PowerComponent.cc @@ -49,10 +49,7 @@ bool PowerComponent::setupComplete(void) const QStringList PowerComponent::setupCompleteChangedTriggerList(void) const { - QStringList triggerList; - - triggerList << "BAT_V_CHARGED" << "BAT_V_EMPTY" << "BAT_N_CELLS"; - return triggerList; + return {"BAT_V_CHARGED", "BAT_V_EMPTY", "BAT_N_CELLS"}; } QUrl PowerComponent::setupSource(void) const diff --git a/src/AutoPilotPlugins/PX4/SensorsComponent.cc b/src/AutoPilotPlugins/PX4/SensorsComponent.cc index 33b161b780a1d66134a6aaa36fc33356a9e3d4ed..6b096c5ee0b11397ec672780606fa32028eab28f 100644 --- a/src/AutoPilotPlugins/PX4/SensorsComponent.cc +++ b/src/AutoPilotPlugins/PX4/SensorsComponent.cc @@ -26,7 +26,7 @@ SensorsComponent::SensorsComponent(Vehicle* vehicle, AutoPilotPlugin* autopilot, VehicleComponent(vehicle, autopilot, parent), _name(tr("Sensors")) { - _deviceIds << QStringLiteral("CAL_GYRO0_ID") << QStringLiteral("CAL_ACC0_ID"); + _deviceIds = QStringList({QStringLiteral("CAL_GYRO0_ID"), QStringLiteral("CAL_ACC0_ID") }; } QString SensorsComponent::name(void) const