diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-11-10 21:44:02 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-11-10 23:17:27 -0500 |
commit | 9254e80c396265f484adb3b7bf5f0b502d096107 (patch) | |
tree | 0404ffd8e40d884a5241d82c0a72589b398c98a4 /libs/ardour/midi_scene_changer.cc | |
parent | e27651d31521a527a2acaf570512a44163b5c638 (diff) |
refactor MIDISceneChange color property addition by moving it into SceneChange to anticipate other types of SceneChange objects (e.g. OSC)
Diffstat (limited to 'libs/ardour/midi_scene_changer.cc')
-rw-r--r-- | libs/ardour/midi_scene_changer.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/midi_scene_changer.cc b/libs/ardour/midi_scene_changer.cc index e799b5a2ce..285a370402 100644 --- a/libs/ardour/midi_scene_changer.cc +++ b/libs/ardour/midi_scene_changer.cc @@ -315,10 +315,10 @@ MIDISceneChanger::program_change_input (MIDI::Parser& parser, MIDI::byte program Locations::LocationList copy (locations->list()); for (Locations::LocationList::const_iterator l = copy.begin(); l != copy.end(); ++l) { - boost::shared_ptr<MIDISceneChange> m = boost::dynamic_pointer_cast<MIDISceneChange>((*l)->scene_change()); + boost::shared_ptr<MIDISceneChange> sc = boost::dynamic_pointer_cast<MIDISceneChange>((*l)->scene_change()); - if (m && (*m.get()) == *msc) { - msc->set_color (m->color ()); + if (sc && (*sc.get()) == *msc) { + msc->set_color (sc->color ()); break; } } |