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

@ -283,9 +283,9 @@ BundleManager::BundleManager (Session* session)
_tree_view.append_column (_("Name"), _list_model_columns.name);
_tree_view.set_headers_visible (false);
std::shared_ptr<BundleList> bundles = _session->bundles ();
for (BundleList::iterator i = bundles->begin(); i != bundles->end(); ++i) {
add_bundle (*i);
std::shared_ptr<BundleList const> bundles = _session->bundles ();
for (auto const& i : *bundles) {
add_bundle (i);
}
/* New / Edit / Delete buttons */