change return type from ptr to reference for AutomationTimeAxis::base_item()

This commit is contained in:
Paul Davis 2023-07-09 17:37:22 -06:00
parent 94f413c399
commit 6743c09b4a
2 changed files with 3 additions and 3 deletions

View File

@ -121,8 +121,8 @@ public:
return _parameter;
}
ArdourCanvas::Item* base_item () const {
return _base_rect;
ArdourCanvas::Rectangle& base_item () const {
return *_base_rect;
}
bool has_automation () const;

View File

@ -6343,7 +6343,7 @@ NoteDrag::aborted (bool)
/** Make an AutomationRangeDrag for lines in an AutomationTimeAxisView */
AutomationRangeDrag::AutomationRangeDrag (Editor* editor, AutomationTimeAxisView* atv, float initial_value, list<TimelineRange> const& r)
: Drag (editor, atv->base_item (), editor->default_time_domain ()) /* XXX NUTEMPO FIX TIME DOMAIN */
: Drag (editor, &atv->base_item (), editor->default_time_domain ()) /* XXX NUTEMPO FIX TIME DOMAIN */
, _ranges (r)
, _y_origin (atv->y_position ())
, _y_height (atv->effective_height ()) // or atv->lines()->front()->height() ?!