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

@ -125,7 +125,7 @@ IOPluginWindow::refill ()
if (!_session) {
return;
}
std::shared_ptr<IOPlugList> iop (_session->io_plugs ());
std::shared_ptr<IOPlugList const> iop (_session->io_plugs ());
for (auto& i : *iop) {
IOPlugUI* iopup = manage (new IOPlugUI (i));
if (i->is_pre ()) {
@ -588,9 +588,9 @@ IOPluginWindow::IOButton::button_press (GdkEventButton* ev)
uint32_t const n_with_separator = citems.size ();
std::shared_ptr<ARDOUR::BundleList> b = _io->session ().bundles ();
std::shared_ptr<ARDOUR::RouteList> routes = _io->session ().get_routes ();
RouteList copy = *routes;
std::shared_ptr<ARDOUR::BundleList const> b = _io->session ().bundles ();
std::shared_ptr<ARDOUR::RouteList const> routes = _io->session ().get_routes ();
RouteList copy = *routes;
copy.sort (RouteCompareByName ());
if (_io->direction () == IO::Input) {