Remove unnecessary 0 checks before delete; see http://www.parashift.com/c++-faq-lite...
[ardour.git] / gtk2_ardour / automation_region_view.cc
index c213b3feeb3137152871fc298f8171735ae82693..d8b90e6458a0377d572c88af371cfc9e086e59ca 100644 (file)
@@ -26,7 +26,7 @@
 AutomationRegionView::AutomationRegionView(ArdourCanvas::Group*                      parent,
                                            AutomationTimeAxisView&                   time_axis,
                                            boost::shared_ptr<ARDOUR::Region>         region,
-                                           const ARDOUR::Parameter&                  param,
+                                           const Evoral::Parameter&                  param,
                                            boost::shared_ptr<ARDOUR::AutomationList> list,
                                            double                                    spu,
                                            Gdk::Color&                               basic_color)
@@ -65,7 +65,8 @@ void
 AutomationRegionView::create_line (boost::shared_ptr<ARDOUR::AutomationList> list)
 {
        _line = boost::shared_ptr<AutomationLine>(new AutomationLine(
-                               list->parameter().symbol(), trackview, *get_canvas_group(), list));
+                               ARDOUR::EventTypeMap::instance().to_symbol(list->parameter()),
+                               trackview, *get_canvas_group(), list));
        _line->set_colors();
        _line->show();
        _line->show_all_control_points();