mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 05:43:34 +08:00
List container improvements and testing
- support range based for loops - add remove() method to remove a node - add clear() to empty entire list and delete nodes - add empty() helper
This commit is contained in:
@@ -78,11 +78,8 @@ protected:
|
||||
*/
|
||||
virtual void updateParams()
|
||||
{
|
||||
ModuleParams *child = _children.getHead();
|
||||
|
||||
while (child) {
|
||||
for (const auto &child : _children) {
|
||||
child->updateParams();
|
||||
child = child->getSibling();
|
||||
}
|
||||
|
||||
updateParamsImpl();
|
||||
|
||||
Reference in New Issue
Block a user