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

@ -645,9 +645,9 @@ Editor::session_gui_extents (bool use_extra) const
* NOTE: we should listen to playlists, and cache these values so we don't calculate them every time.
*/
{
std::shared_ptr<RouteList> rl = _session->get_routes();
for (RouteList::iterator r = rl->begin(); r != rl->end(); ++r) {
std::shared_ptr<Track> tr = std::dynamic_pointer_cast<Track> (*r);
std::shared_ptr<RouteList const> rl = _session->get_routes();
for (auto const& r : *rl) {
std::shared_ptr<Track> tr = std::dynamic_pointer_cast<Track> (r);
if (!tr) {
continue;