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
|
|
@ -111,7 +111,7 @@ static Cairo::RefPtr<Cairo::Pattern> create_pending_peak_pattern() {
|
|||
return p;
|
||||
}
|
||||
|
||||
AudioRegionView::AudioRegionView (ArdourCanvas::Container *parent, RouteTimeAxisView &tv, boost::shared_ptr<AudioRegion> r, double spu,
|
||||
AudioRegionView::AudioRegionView (ArdourCanvas::Container *parent, RouteTimeAxisView &tv, std::shared_ptr<AudioRegion> r, double spu,
|
||||
uint32_t basic_color)
|
||||
: RegionView (parent, tv, r, spu, basic_color)
|
||||
, fade_in_handle(0)
|
||||
|
|
@ -131,7 +131,7 @@ AudioRegionView::AudioRegionView (ArdourCanvas::Container *parent, RouteTimeAxis
|
|||
{
|
||||
}
|
||||
|
||||
AudioRegionView::AudioRegionView (ArdourCanvas::Container *parent, RouteTimeAxisView &tv, boost::shared_ptr<AudioRegion> r, double spu,
|
||||
AudioRegionView::AudioRegionView (ArdourCanvas::Container *parent, RouteTimeAxisView &tv, std::shared_ptr<AudioRegion> r, double spu,
|
||||
uint32_t basic_color, bool recording, TimeAxisViewItem::Visibility visibility)
|
||||
: RegionView (parent, tv, r, spu, basic_color, recording, visibility)
|
||||
, fade_in_handle(0)
|
||||
|
|
@ -151,8 +151,8 @@ AudioRegionView::AudioRegionView (ArdourCanvas::Container *parent, RouteTimeAxis
|
|||
{
|
||||
}
|
||||
|
||||
AudioRegionView::AudioRegionView (const AudioRegionView& other, boost::shared_ptr<AudioRegion> other_region)
|
||||
: RegionView (other, boost::shared_ptr<Region> (other_region))
|
||||
AudioRegionView::AudioRegionView (const AudioRegionView& other, std::shared_ptr<AudioRegion> other_region)
|
||||
: RegionView (other, std::shared_ptr<Region> (other_region))
|
||||
, fade_in_handle(0)
|
||||
, fade_out_handle(0)
|
||||
, fade_in_trim_handle(0)
|
||||
|
|
@ -297,11 +297,11 @@ AudioRegionView::~AudioRegionView ()
|
|||
/* all waveviews etc will be destroyed when the group is destroyed */
|
||||
}
|
||||
|
||||
boost::shared_ptr<ARDOUR::AudioRegion>
|
||||
std::shared_ptr<ARDOUR::AudioRegion>
|
||||
AudioRegionView::audio_region() const
|
||||
{
|
||||
// "Guaranteed" to succeed...
|
||||
return boost::dynamic_pointer_cast<AudioRegion>(_region);
|
||||
return std::dynamic_pointer_cast<AudioRegion>(_region);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -415,7 +415,7 @@ AudioRegionView::region_renamed ()
|
|||
str = string ("*") + str;
|
||||
}
|
||||
|
||||
boost::shared_ptr<AudioRegion> ar (audio_region());
|
||||
std::shared_ptr<AudioRegion> ar (audio_region());
|
||||
const gain_t scale_amplitude = ar->scale_amplitude();
|
||||
if (scale_amplitude != 1.0) {
|
||||
char tmp[32];
|
||||
|
|
@ -651,7 +651,7 @@ AudioRegionView::reset_fade_in_shape ()
|
|||
}
|
||||
|
||||
void
|
||||
AudioRegionView::reset_fade_in_shape_width (boost::shared_ptr<AudioRegion> ar, samplecnt_t width, bool drag_active)
|
||||
AudioRegionView::reset_fade_in_shape_width (std::shared_ptr<AudioRegion> ar, samplecnt_t width, bool drag_active)
|
||||
{
|
||||
trim_fade_in_drag_active = drag_active;
|
||||
if (fade_in_handle == 0) {
|
||||
|
|
@ -702,7 +702,7 @@ AudioRegionView::reset_fade_in_shape_width (boost::shared_ptr<AudioRegion> ar, s
|
|||
|
||||
Points points;
|
||||
Points::size_type pi;
|
||||
boost::shared_ptr<const Evoral::ControlList> list (audio_region()->fade_in());
|
||||
std::shared_ptr<const Evoral::ControlList> list (audio_region()->fade_in());
|
||||
Evoral::ControlList::const_iterator x;
|
||||
samplecnt_t length = list->length().samples();
|
||||
|
||||
|
|
@ -731,7 +731,7 @@ AudioRegionView::reset_fade_out_shape ()
|
|||
}
|
||||
|
||||
void
|
||||
AudioRegionView::reset_fade_out_shape_width (boost::shared_ptr<AudioRegion> ar, samplecnt_t width, bool drag_active)
|
||||
AudioRegionView::reset_fade_out_shape_width (std::shared_ptr<AudioRegion> ar, samplecnt_t width, bool drag_active)
|
||||
{
|
||||
trim_fade_out_drag_active = drag_active;
|
||||
if (fade_out_handle == 0) {
|
||||
|
|
@ -789,7 +789,7 @@ AudioRegionView::reset_fade_out_shape_width (boost::shared_ptr<AudioRegion> ar,
|
|||
|
||||
Points points;
|
||||
Points::size_type pi;
|
||||
boost::shared_ptr<const Evoral::ControlList> list (audio_region()->fade_out());
|
||||
std::shared_ptr<const Evoral::ControlList> list (audio_region()->fade_out());
|
||||
Evoral::ControlList::const_iterator x;
|
||||
double length = list->length().samples();
|
||||
|
||||
|
|
@ -827,7 +827,7 @@ AudioRegionView::get_fade_out_shape_width ()
|
|||
void
|
||||
AudioRegionView::redraw_start_xfade ()
|
||||
{
|
||||
boost::shared_ptr<AudioRegion> ar (audio_region());
|
||||
std::shared_ptr<AudioRegion> ar (audio_region());
|
||||
|
||||
if (!ar->fade_in() || ar->fade_in()->empty()) {
|
||||
return;
|
||||
|
|
@ -838,7 +838,7 @@ AudioRegionView::redraw_start_xfade ()
|
|||
}
|
||||
|
||||
void
|
||||
AudioRegionView::redraw_start_xfade_to (boost::shared_ptr<AudioRegion> ar, samplecnt_t /*width*/, Points& points, double effective_height,
|
||||
AudioRegionView::redraw_start_xfade_to (std::shared_ptr<AudioRegion> ar, samplecnt_t /*width*/, Points& points, double effective_height,
|
||||
double rect_width)
|
||||
{
|
||||
if (points.size() < 2) {
|
||||
|
|
@ -866,7 +866,7 @@ AudioRegionView::redraw_start_xfade_to (boost::shared_ptr<AudioRegion> ar, sampl
|
|||
|
||||
/* fade out line */
|
||||
|
||||
boost::shared_ptr<AutomationList> inverse = ar->inverse_fade_in ();
|
||||
std::shared_ptr<AutomationList> inverse = ar->inverse_fade_in ();
|
||||
Points ipoints;
|
||||
Points::size_type npoints;
|
||||
|
||||
|
|
@ -916,7 +916,7 @@ AudioRegionView::redraw_start_xfade_to (boost::shared_ptr<AudioRegion> ar, sampl
|
|||
void
|
||||
AudioRegionView::redraw_end_xfade ()
|
||||
{
|
||||
boost::shared_ptr<AudioRegion> ar (audio_region());
|
||||
std::shared_ptr<AudioRegion> ar (audio_region());
|
||||
|
||||
if (!ar->fade_out() || ar->fade_out()->empty()) {
|
||||
return;
|
||||
|
|
@ -928,7 +928,7 @@ AudioRegionView::redraw_end_xfade ()
|
|||
}
|
||||
|
||||
void
|
||||
AudioRegionView::redraw_end_xfade_to (boost::shared_ptr<AudioRegion> ar, samplecnt_t width, Points& points, double effective_height,
|
||||
AudioRegionView::redraw_end_xfade_to (std::shared_ptr<AudioRegion> ar, samplecnt_t width, Points& points, double effective_height,
|
||||
double rect_edge, double rect_width)
|
||||
{
|
||||
if (points.size() < 2) {
|
||||
|
|
@ -957,7 +957,7 @@ AudioRegionView::redraw_end_xfade_to (boost::shared_ptr<AudioRegion> ar, samplec
|
|||
|
||||
/* fade in line */
|
||||
|
||||
boost::shared_ptr<AutomationList> inverse = ar->inverse_fade_out ();
|
||||
std::shared_ptr<AutomationList> inverse = ar->inverse_fade_out ();
|
||||
Points ipoints;
|
||||
Points::size_type npoints;
|
||||
|
||||
|
|
@ -1520,7 +1520,7 @@ AudioRegionView::entered ()
|
|||
fade_out_handle->raise_to_top ();
|
||||
}
|
||||
if (fade_in_trim_handle) {
|
||||
boost::shared_ptr<AudioRegion> ar (audio_region());
|
||||
std::shared_ptr<AudioRegion> ar (audio_region());
|
||||
if (!ar->locked() && (ar->fade_in()->back()->when > 64 || (ar->can_trim() & Trimmable::FrontTrimEarlier))) {
|
||||
fade_in_trim_handle->show ();
|
||||
fade_in_trim_handle->raise_to_top ();
|
||||
|
|
@ -1529,7 +1529,7 @@ AudioRegionView::entered ()
|
|||
}
|
||||
}
|
||||
if (fade_out_trim_handle) {
|
||||
boost::shared_ptr<AudioRegion> ar (audio_region());
|
||||
std::shared_ptr<AudioRegion> ar (audio_region());
|
||||
if (!ar->locked() && (ar->fade_out()->back()->when > 64 || (ar->can_trim() & Trimmable::EndTrimLater))) {
|
||||
fade_out_trim_handle->show ();
|
||||
fade_out_trim_handle->raise_to_top ();
|
||||
|
|
@ -1550,8 +1550,8 @@ AudioRegionView::entered ()
|
|||
void
|
||||
AudioRegionView::exited ()
|
||||
{
|
||||
trackview.editor().set_current_trimmable (boost::shared_ptr<Trimmable>());
|
||||
trackview.editor().set_current_movable (boost::shared_ptr<Movable>());
|
||||
trackview.editor().set_current_trimmable (std::shared_ptr<Trimmable>());
|
||||
trackview.editor().set_current_movable (std::shared_ptr<Movable>());
|
||||
|
||||
// if (gain_line) {
|
||||
// gain_line->remove_visibility (AutomationLine::ControlPoints);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue