diff options
author | Florian Jung <flo@windfisch.org> | 2013-08-19 22:10:22 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2013-08-19 22:10:22 +0200 |
commit | 013294f58a6433671da3b34775de5a3a7ea91464 (patch) | |
tree | 7a1135f74c798f78c802c8c4e4ca4f9b0c293baa /muse2/muse/helper.cpp | |
parent | 67c0ed979d4dd05c1d51b688c2fb02ebc681afd1 (diff) |
some const-correctness. Part interface overhaul.
various fixes.
Diffstat (limited to 'muse2/muse/helper.cpp')
-rw-r--r-- | muse2/muse/helper.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/muse2/muse/helper.cpp b/muse2/muse/helper.cpp index e71be282..75cbce9f 100644 --- a/muse2/muse/helper.cpp +++ b/muse2/muse/helper.cpp @@ -108,7 +108,7 @@ Part* partFromSerialNumber(int serial) return NULL; } -bool any_event_selected(const set<Part*>& parts, bool in_range) +bool any_event_selected(const set<const Part*>& parts, bool in_range) { return !get_events(parts, in_range ? 3 : 1).empty(); } @@ -942,8 +942,8 @@ int populateMidiCtrlMenu(PopupMenu* menu, MusECore::PartList* part_list, MusECor bool used = false; for (MusECore::iPart ip = part_list->begin(); ip != part_list->end(); ++ip) { const MusECore::EventList& el = ip->second->events(); - for (MusECore::iEvent ie = el.begin(); ie != el.end(); ++ie) { - MusECore::Event e = ie->second; + for (MusECore::ciEvent ie = el.begin(); ie != el.end(); ++ie) { + const MusECore::Event& e = ie->second; if(e.type() != MusECore::Controller) continue; int ctl_num = e.dataA(); |