From 72517680cc89a88ea76a3891b69149005f738d02 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 6 Mar 2014 13:26:55 -0500 Subject: use CANVAS_DEBUG_NAME instead of explicit #ifdef to set canvas item name --- gtk2_ardour/note.cc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'gtk2_ardour/note.cc') diff --git a/gtk2_ardour/note.cc b/gtk2_ardour/note.cc index 1a77709a58..3726d2f082 100644 --- a/gtk2_ardour/note.cc +++ b/gtk2_ardour/note.cc @@ -19,7 +19,10 @@ */ #include "evoral/Note.hpp" + #include "canvas/rectangle.h" +#include "canvas/debug.h" + #include "note.h" #include "midi_region_view.h" #include "public_editor.h" @@ -28,17 +31,11 @@ using namespace ARDOUR; using namespace ArdourCanvas; Note::Note ( - MidiRegionView& region, - Group* group, - const boost::shared_ptr note, - bool with_events - ) + MidiRegionView& region, Group* group, const boost::shared_ptr note, bool with_events) : NoteBase (region, with_events, note) , _rectangle (new ArdourCanvas::Rectangle (group)) { -#ifdef CANVAS_DEBUG - _rectangle->name = "note"; -#endif + CANVAS_DEBUG_NAME (_rectangle, "note"); set_item (_rectangle); } -- cgit v1.2.3