mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Ref T270, push front for sequence and unified "insert" -> "push_back"
Remark: "CSequence::insert" is a synonym "push_back". This makes it clearer that push_back is used.
This commit is contained in:
@@ -768,7 +768,7 @@ namespace BlackMisc
|
||||
for (const CAircraftModel &model : *this)
|
||||
{
|
||||
if (model.getAirlineIcaoCode() != airlineCode) { continue; }
|
||||
icaos.insert(model.getAircraftIcaoCode());
|
||||
icaos.push_back(model.getAircraftIcaoCode());
|
||||
}
|
||||
return icaos;
|
||||
}
|
||||
@@ -1030,7 +1030,7 @@ namespace BlackMisc
|
||||
Q_UNUSED(scope);
|
||||
CAircraftModel value;
|
||||
value.convertFromMemoizedJson(i->toObject(), helper);
|
||||
insert(value);
|
||||
this->push_back(value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user