diff --git a/gtk2_ardour/automation_streamview.cc b/gtk2_ardour/automation_streamview.cc index 0bde166b98..1d55c61a7e 100644 --- a/gtk2_ardour/automation_streamview.cc +++ b/gtk2_ardour/automation_streamview.cc @@ -71,12 +71,11 @@ AutomationStreamView::~AutomationStreamView () { } - RegionView* AutomationStreamView::add_region_view_internal (std::shared_ptr region, bool /*wait_for_data*/, bool /*recording*/) { if (!region) { - return 0; + return nullptr; } std::shared_ptr list; @@ -89,7 +88,7 @@ AutomationStreamView::add_region_view_internal (std::shared_ptr region, list = std::dynamic_pointer_cast(control->list()); if (control->list() && !list) { error << _("unable to display automation region for control without list") << endmsg; - return 0; + return nullptr; } } @@ -107,7 +106,7 @@ AutomationStreamView::add_region_view_internal (std::shared_ptr region, rv->set_valid (true); display_region (arv); - return 0; + return nullptr; } }