diff options
Diffstat (limited to 'libs/ardour/ardour/midi_model.h')
-rw-r--r-- | libs/ardour/ardour/midi_model.h | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/libs/ardour/ardour/midi_model.h b/libs/ardour/ardour/midi_model.h index 5d16c30836..3ba0fc1279 100644 --- a/libs/ardour/ardour/midi_model.h +++ b/libs/ardour/ardour/midi_model.h @@ -124,20 +124,16 @@ public: void remove(const boost::shared_ptr<Note> note); private: - class NoteMarshaller { - public: - XMLNode *operator()(const boost::shared_ptr<Note> note); - }; + XMLNode &marshal_note(const boost::shared_ptr<Note> note); + boost::shared_ptr<Note> unmarshal_note(XMLNode *xml_note); - class NoteUnmarshaller { - public: - boost::shared_ptr<Note> operator()(XMLNode *xml_note); - }; - MidiModel& _model; const std::string _name; - std::list< boost::shared_ptr<Note> > _added_notes; - std::list< boost::shared_ptr<Note> > _removed_notes; + + typedef std::list< boost::shared_ptr<Note> > NoteList; + + NoteList _added_notes; + NoteList _removed_notes; }; MidiModel::DeltaCommand* new_delta_command(const std::string name="midi edit"); |