Commit ce368427 authored by Tomaz Canabrava's avatar Tomaz Canabrava Committed by Daniel Agar

More lists to bracket initializer

parent 0813a407
......@@ -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
......
......@@ -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
......
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