From 554d46896bf60fdf0804225acb26a9fd79e592c4 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 1 Feb 2009 19:39:24 +0000 Subject: Style. git-svn-id: svn://localhost/ardour2/branches/3.0@4470 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/midi_model.cc | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/libs/ardour/midi_model.cc b/libs/ardour/midi_model.cc index c1d53a2553..59776c59d6 100644 --- a/libs/ardour/midi_model.cc +++ b/libs/ardour/midi_model.cc @@ -182,7 +182,8 @@ MidiModel::DeltaCommand::marshal_note(const boost::shared_ptr note return *xml_note; } -boost::shared_ptr MidiModel::DeltaCommand::unmarshal_note(XMLNode *xml_note) +boost::shared_ptr +MidiModel::DeltaCommand::unmarshal_note(XMLNode *xml_note) { unsigned int note; XMLProperty* prop; @@ -239,7 +240,8 @@ boost::shared_ptr MidiModel::DeltaCommand::unmarshal_note(XMLNode #define REMOVED_NOTES_ELEMENT "removed_notes" #define DELTA_COMMAND_ELEMENT "DeltaCommand" -int MidiModel::DeltaCommand::set_state(const XMLNode& delta_command) +int +MidiModel::DeltaCommand::set_state(const XMLNode& delta_command) { if (delta_command.name() != string(DELTA_COMMAND_ELEMENT)) { return 1; @@ -260,7 +262,8 @@ int MidiModel::DeltaCommand::set_state(const XMLNode& delta_command) return 0; } -XMLNode& MidiModel::DeltaCommand::get_state() +XMLNode& +MidiModel::DeltaCommand::get_state() { XMLNode *delta_command = new XMLNode(DELTA_COMMAND_ELEMENT); delta_command->add_property("midi-source", _model->midi_source()->id().to_s()); @@ -285,7 +288,8 @@ XMLNode& MidiModel::DeltaCommand::get_state() * to percussive, save, reload, then switch it back to sustained without * destroying the original note durations. */ -bool MidiModel::write_to(boost::shared_ptr source) +bool +MidiModel::write_to(boost::shared_ptr source) { read_lock(); @@ -304,7 +308,8 @@ bool MidiModel::write_to(boost::shared_ptr source) return true; } -XMLNode& MidiModel::get_state() +XMLNode& +MidiModel::get_state() { XMLNode *node = new XMLNode("MidiModel"); return *node; -- cgit v1.2.3