mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
use nullptr as return value instead of 0
This commit is contained in:
parent
9f62e034b7
commit
200fe85ee2
1 changed files with 3 additions and 4 deletions
|
|
@ -71,12 +71,11 @@ AutomationStreamView::~AutomationStreamView ()
|
|||
{
|
||||
}
|
||||
|
||||
|
||||
RegionView*
|
||||
AutomationStreamView::add_region_view_internal (std::shared_ptr<Region> region, bool /*wait_for_data*/, bool /*recording*/)
|
||||
{
|
||||
if (!region) {
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::shared_ptr<AutomationList> list;
|
||||
|
|
@ -89,7 +88,7 @@ AutomationStreamView::add_region_view_internal (std::shared_ptr<Region> region,
|
|||
list = std::dynamic_pointer_cast<AutomationList>(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> region,
|
|||
rv->set_valid (true);
|
||||
display_region (arv);
|
||||
|
||||
return 0;
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue