mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
switch from boost::{shared,weak}_ptr to std::{shared,weak}_ptr
This is mostly a simple lexical search+replace but the absence of operator< for std::weak_ptr<T> leads to some complications, particularly with Evoral::Sequence and ExportPortChannel.
This commit is contained in:
parent
90c5524e7b
commit
b35518e212
819 changed files with 9736 additions and 9709 deletions
|
|
@ -1049,17 +1049,17 @@ struct null_deleter { void operator()(void const *) const {} };
|
|||
bool
|
||||
TimeAxisView::is_child (TimeAxisView* tav)
|
||||
{
|
||||
return find (children.begin(), children.end(), boost::shared_ptr<TimeAxisView>(tav, null_deleter())) != children.end();
|
||||
return find (children.begin(), children.end(), std::shared_ptr<TimeAxisView>(tav, null_deleter())) != children.end();
|
||||
}
|
||||
|
||||
void
|
||||
TimeAxisView::add_child (boost::shared_ptr<TimeAxisView> child)
|
||||
TimeAxisView::add_child (std::shared_ptr<TimeAxisView> child)
|
||||
{
|
||||
children.push_back (child);
|
||||
}
|
||||
|
||||
void
|
||||
TimeAxisView::remove_child (boost::shared_ptr<TimeAxisView> child)
|
||||
TimeAxisView::remove_child (std::shared_ptr<TimeAxisView> child)
|
||||
{
|
||||
Children::iterator i;
|
||||
|
||||
|
|
@ -1395,7 +1395,7 @@ TimeAxisView::reset_visual_state ()
|
|||
TrackViewList
|
||||
TrackViewList::filter_to_unique_playlists ()
|
||||
{
|
||||
std::set<boost::shared_ptr<ARDOUR::Playlist> > playlists;
|
||||
std::set<std::shared_ptr<ARDOUR::Playlist> > playlists;
|
||||
TrackViewList ts;
|
||||
|
||||
for (iterator i = begin(); i != end(); ++i) {
|
||||
|
|
@ -1404,7 +1404,7 @@ TrackViewList::filter_to_unique_playlists ()
|
|||
/* not a route: include it anyway */
|
||||
ts.push_back (*i);
|
||||
} else {
|
||||
boost::shared_ptr<ARDOUR::Track> t = rtav->track();
|
||||
std::shared_ptr<ARDOUR::Track> t = rtav->track();
|
||||
if (t) {
|
||||
if (playlists.insert (t->playlist()).second) {
|
||||
/* playlist not seen yet */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue