Skip to content
Snippets Groups Projects

adaptive: use std::unique_ptr and auto when possible

Draft because depends it might depends on !1615 (merged), and I still have a few things to check.

It uses auto to simplify the iterator type, easing the transition from vector<Segment*>::iterator to vector<unique_ptr<T>>::iterator, while also removing iterators from the loops.

It then change the vector to use unique_ptr, making a clear ownership signal and ensuring there is no leaks of segments.

Note that among the auto use, it uses auto as a lambda parameter which is C++14.

Merge request reports

Members who can merge are allowed to add commits.

Merge request pipeline #418978 passed

Merge request pipeline passed for 9bf69189

Loading
Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading