Playlist UI tweaks: clarify purpose of get_region{view}s_corresponding_to

This commit is contained in:
Ben Loftis 2021-06-04 11:44:50 -05:00
parent b0db646029
commit cf999ecaa9
3 changed files with 3 additions and 3 deletions

View File

@ -5163,7 +5163,7 @@ Editor::get_per_region_note_selection (list<pair<PBD::ID, set<boost::shared_ptr<
}
void
Editor::get_regions_corresponding_to (boost::shared_ptr<Region> region, vector<RegionView*>& regions, bool src_comparison)
Editor::get_regionviews_corresponding_to (boost::shared_ptr<Region> region, vector<RegionView*>& regions, bool src_comparison)
{
for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) {

View File

@ -472,7 +472,7 @@ public:
samplepos_t& pos,
boost::shared_ptr<ARDOUR::PluginInfo> instrument = boost::shared_ptr<ARDOUR::PluginInfo>());
void get_regions_corresponding_to (boost::shared_ptr<ARDOUR::Region> region, std::vector<RegionView*>& regions, bool src_comparison);
void get_regionviews_corresponding_to (boost::shared_ptr<ARDOUR::Region> region, std::vector<RegionView*>& regions, bool src_comparison);
void get_regionviews_by_id (PBD::ID const id, RegionSelection & regions) const;
void get_per_region_note_selection (std::list<std::pair<PBD::ID, std::set<boost::shared_ptr<Evoral::Note<Temporal::Beats> > > > >&) const;

View File

@ -953,7 +953,7 @@ Editor::set_selected_regionview_from_region_list (boost::shared_ptr<Region> regi
{
vector<RegionView*> all_equivalent_regions;
get_regions_corresponding_to (region, all_equivalent_regions, region->whole_file());
get_regionviews_corresponding_to (region, all_equivalent_regions, region->whole_file());
if (all_equivalent_regions.empty()) {
return;