Skip to content

Commit

Permalink
LoopingControl: use auto instead of auto* for iterator
Browse files Browse the repository at this point in the history
I don't know how auto* worked before considering the iterator
is not a pointer type, but it doesn't work in Qt6.
  • Loading branch information
Be-ing committed Oct 12, 2021
1 parent 44a1e4f commit ed4e068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/controls/loopingcontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ void LoopingControl::slotBeatLoopDeactivate(BeatLoopingControl* pBeatLoopControl
void LoopingControl::slotBeatLoopDeactivateRoll(BeatLoopingControl* pBeatLoopControl) {
pBeatLoopControl->deactivate();
const double size = pBeatLoopControl->getSize();
auto* i = m_activeLoopRolls.begin();
auto i = m_activeLoopRolls.begin();
while (i != m_activeLoopRolls.end()) {
if (size == *i) {
i = m_activeLoopRolls.erase(i);
Expand Down

0 comments on commit ed4e068

Please sign in to comment.