From 200fe85ee2dd44807fce7ceaf19e8b086517aebf Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 10 Nov 2024 22:03:39 -0700 Subject: [PATCH] use nullptr as return value instead of 0 --- gtk2_ardour/automation_streamview.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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; } }