Skip to content

Commit

Permalink
Rewrite deleting item and remove checking loop
Browse files Browse the repository at this point in the history
  • Loading branch information
donarturo11 committed Sep 10, 2022
1 parent a73b208 commit f92e6b6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/muse/operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1279,12 +1279,7 @@ SongChangedStruct_t PendingOperationItem::executeRTStage()
case DeleteMidiCtrlVal:
DEBUG_OPERATIONS(stderr, "PendingOperationItem::executeRTStage DeleteMidiCtrlVal: mcvl:%p tick:%u part:%p val:%d\n",
_mcvl, _imcv->first, _imcv->second.part, _imcv->second.val);
for (auto it = _mcvl->begin(); it!=_mcvl->end(); it++){
if (it == _imcv) {
_mcvl->erase(_imcv);
break;
}
}
_mcvl->delMCtlVal(_imcv->first, _imcv->second.part, _imcv->second.val);
// No song changed flags are required to be set here.
break;
case ModifyMidiCtrlVal:
Expand Down

0 comments on commit f92e6b6

Please sign in to comment.