diff options
author | David Robillard <d@drobilla.net> | 2009-02-01 19:39:24 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-02-01 19:39:24 +0000 |
commit | 554d46896bf60fdf0804225acb26a9fd79e592c4 (patch) | |
tree | 1913a27868d32ac14287c6998135d979ca283a57 | |
parent | e666c8e98fb95a69afae8818f22c25094adae7eb (diff) |
Style.
git-svn-id: svn://localhost/ardour2/branches/3.0@4470 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | libs/ardour/midi_model.cc | 15 |
1 files 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<Evoral::Note> note return *xml_note; } -boost::shared_ptr<Evoral::Note> MidiModel::DeltaCommand::unmarshal_note(XMLNode *xml_note) +boost::shared_ptr<Evoral::Note> +MidiModel::DeltaCommand::unmarshal_note(XMLNode *xml_note) { unsigned int note; XMLProperty* prop; @@ -239,7 +240,8 @@ boost::shared_ptr<Evoral::Note> 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<MidiSource> source) +bool +MidiModel::write_to(boost::shared_ptr<MidiSource> source) { read_lock(); @@ -304,7 +308,8 @@ bool MidiModel::write_to(boost::shared_ptr<MidiSource> source) return true; } -XMLNode& MidiModel::get_state() +XMLNode& +MidiModel::get_state() { XMLNode *node = new XMLNode("MidiModel"); return *node; |