Make RCU reader return a const pointer (omnibus commit)

This commit is contained in:
Robin Gareus 2023-04-07 23:33:13 +02:00
parent e9f71824a1
commit 295dbd8e1e
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
58 changed files with 745 additions and 776 deletions

View file

@ -304,9 +304,8 @@ CueBoxUI::context_menu (uint64_t idx)
void
CueBoxUI::get_slots (TriggerList &triggerlist, uint64_t idx)
{
std::shared_ptr<RouteList> rl = _session->get_routes();
for (RouteList::iterator r = rl->begin(); r != rl->end(); ++r) {
std::shared_ptr<Route> route = *r;
std::shared_ptr<RouteList const> rl = _session->get_routes();
for (auto const& route : *rl) {
std::shared_ptr<TriggerBox> box = route->triggerbox();
#warning @Ben disambiguate processor *active* vs *visibility*
if (box /*&& box.active*/) {