From 549de1f298ad777febe201c6c50e2303a6ca0c4d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 10 Jul 2011 15:28:36 +0000 Subject: [PATCH] add braces and move a destructor into its .cc file git-svn-id: svn://localhost/ardour2/branches/3.0@9830 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/automation_region_view.cc | 4 ++++ gtk2_ardour/automation_region_view.h | 2 +- gtk2_ardour/automation_streamview.cc | 3 ++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/automation_region_view.cc b/gtk2_ardour/automation_region_view.cc index 18ce6cc646..3662307c61 100644 --- a/gtk2_ardour/automation_region_view.cc +++ b/gtk2_ardour/automation_region_view.cc @@ -54,6 +54,10 @@ AutomationRegionView::AutomationRegionView (ArdourCanvas::Group* group->raise_to_top(); } +AutomationRegionView::~AutomationRegionView () +{ +} + void AutomationRegionView::init (Gdk::Color const & basic_color, bool /*wfd*/) { diff --git a/gtk2_ardour/automation_region_view.h b/gtk2_ardour/automation_region_view.h index 161977eaa1..3e2a9b6bbf 100644 --- a/gtk2_ardour/automation_region_view.h +++ b/gtk2_ardour/automation_region_view.h @@ -46,7 +46,7 @@ public: double initial_samples_per_unit, Gdk::Color const & basic_color); - ~AutomationRegionView() {} + ~AutomationRegionView(); void init (Gdk::Color const & basic_color, bool wfd); diff --git a/gtk2_ardour/automation_streamview.cc b/gtk2_ardour/automation_streamview.cc index 3e2046fd58..ba3426678e 100644 --- a/gtk2_ardour/automation_streamview.cc +++ b/gtk2_ardour/automation_streamview.cc @@ -95,8 +95,9 @@ AutomationStreamView::add_region_view_internal (boost::shared_ptr region /* great. we already have an AutomationRegionView for this Region. use it again. */ AutomationRegionView* arv = dynamic_cast(*i);; - if (arv->line()) + if (arv->line()) { arv->line()->set_list (list); + } (*i)->set_valid (true); (*i)->enable_display(wfd); display_region(arv);