From 590882f3c8e063528452d71daffb36d3151da05e Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 12 Jun 2014 14:53:44 -0400 Subject: change Canvas heirarchy and constructors Items no longer need a parent group (they require a Canvas pointer instead), so all constructors have been rationalized and have two variants, one with a parent and one with a canvas. All Items now inherit from Fill and Outline, to banish diagonal inheritance and virtual base classes and all that. There were zero changes to the Ardour GUI arising from these changes. --- libs/canvas/poly_item.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libs/canvas/poly_item.cc') diff --git a/libs/canvas/poly_item.cc b/libs/canvas/poly_item.cc index 0d3369f70b..618983db97 100644 --- a/libs/canvas/poly_item.cc +++ b/libs/canvas/poly_item.cc @@ -27,11 +27,14 @@ using namespace std; using namespace ArdourCanvas; -PolyItem::PolyItem (Group* parent) - : Item (parent) - , Outline (parent) +PolyItem::PolyItem (Canvas* c) + : Item (c) { +} +PolyItem::PolyItem (Group* g) + : Item (g) +{ } void -- cgit v1.2.3