summaryrefslogtreecommitdiff
path: root/gtk2_ardour/region_selection.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-07-09 17:58:13 +0000
committerCarl Hetherington <carl@carlh.net>2009-07-09 17:58:13 +0000
commit402cc384ced6cb152c8abe4294009fe0de0a6dea (patch)
treef01db6b412cb8e2d3c69fa123fd615c229ee47d3 /gtk2_ardour/region_selection.cc
parentcc351b97a986fca48a6b3b631a292bf24efc5e41 (diff)
Back out big shared_ptr change. Moving to a branch. Apologies all.
git-svn-id: svn://localhost/ardour2/branches/3.0@5343 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/region_selection.cc')
-rw-r--r--gtk2_ardour/region_selection.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/region_selection.cc b/gtk2_ardour/region_selection.cc
index 0970e435b1..13e2bdb7f4 100644
--- a/gtk2_ardour/region_selection.cc
+++ b/gtk2_ardour/region_selection.cc
@@ -253,10 +253,10 @@ struct RegionSortByTrack {
/* really, track and position */
- if (a->get_trackview()->order() == b->get_trackview()->order()) {
+ if (a->get_trackview().order() == b->get_trackview().order()) {
return a->region()->position() < b->region()->position();
} else {
- return a->get_trackview()->order() < b->get_trackview()->order();
+ return a->get_trackview().order() < b->get_trackview().order();
}
}
};
@@ -295,10 +295,10 @@ RegionSelection::sort_by_position_and_track ()
* @return true if any of the selection's regions are on tv.
*/
bool
-RegionSelection::involves (TimeAxisViewPtr tv) const
+RegionSelection::involves (const TimeAxisView& tv) const
{
for (RegionSelection::const_iterator i = begin(); i != end(); ++i) {
- if ((*i)->get_trackview() == tv) {
+ if (&(*i)->get_trackview() == &tv) {
return true;
}
}