mirror of https://github.com/AxioDL/amuse.git
Implicit switch fallthrough refactor
This commit is contained in:
parent
54ef2dd73b
commit
9f2bb1b371
|
@ -398,6 +398,7 @@ struct AppCallback : boo::IApplicationCallback {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
m_updateDisp = true;
|
m_updateDisp = true;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -870,6 +871,7 @@ void EventCallback::specialKeyDown(boo::ESpecialKey key, boo::EModifierKey mods,
|
||||||
break;
|
break;
|
||||||
case boo::ESpecialKey::Esc:
|
case boo::ESpecialKey::Esc:
|
||||||
m_app.m_breakout = true;
|
m_app.m_breakout = true;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -893,6 +893,7 @@ AudioGroupSampleDirectory::toGCNData(const AudioGroupDatabase& group) const {
|
||||||
case SampleFileState::WAVRecent:
|
case SampleFileState::WAVRecent:
|
||||||
case SampleFileState::WAVNoCompressed:
|
case SampleFileState::WAVNoCompressed:
|
||||||
group.makeCompressedVersion(ent.first, ent.second.get().get());
|
group.makeCompressedVersion(ent.first, ent.second.get().get());
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -206,6 +206,7 @@ DirectoryEnumerator::DirectoryEnumerator(SystemStringView path, Mode mode, bool
|
||||||
if (mode == Mode::DirsSorted)
|
if (mode == Mode::DirsSorted)
|
||||||
break;
|
break;
|
||||||
rewinddir(dir);
|
rewinddir(dir);
|
||||||
|
[[fallthrough]];
|
||||||
}
|
}
|
||||||
case Mode::FilesSorted: {
|
case Mode::FilesSorted: {
|
||||||
if (mode == Mode::FilesSorted)
|
if (mode == Mode::FilesSorted)
|
||||||
|
|
|
@ -291,19 +291,24 @@ void Sequencer::ChannelState::setCtrlValue(uint8_t ctrl, int8_t val) {
|
||||||
// RPN LSB
|
// RPN LSB
|
||||||
m_rpn &= ~0x7f;
|
m_rpn &= ~0x7f;
|
||||||
m_rpn |= val;
|
m_rpn |= val;
|
||||||
|
break;
|
||||||
case 99:
|
case 99:
|
||||||
// RPN MSB
|
// RPN MSB
|
||||||
m_rpn &= ~0x3f80;
|
m_rpn &= ~0x3f80;
|
||||||
m_rpn |= val << 7;
|
m_rpn |= val << 7;
|
||||||
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
if (m_rpn == 0)
|
if (m_rpn == 0)
|
||||||
m_pitchWheelRange = val;
|
m_pitchWheelRange = val;
|
||||||
|
break;
|
||||||
case 96:
|
case 96:
|
||||||
if (m_rpn == 0)
|
if (m_rpn == 0)
|
||||||
m_pitchWheelRange += 1;
|
m_pitchWheelRange += 1;
|
||||||
|
break;
|
||||||
case 97:
|
case 97:
|
||||||
if (m_rpn == 0)
|
if (m_rpn == 0)
|
||||||
m_pitchWheelRange -= 1;
|
m_pitchWheelRange -= 1;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -144,6 +144,7 @@ public:
|
||||||
uint32_t tempo = 0;
|
uint32_t tempo = 0;
|
||||||
memcpy(&reinterpret_cast<uint8_t*>(&tempo)[1], &*it, 3);
|
memcpy(&reinterpret_cast<uint8_t*>(&tempo)[1], &*it, 3);
|
||||||
m_tempos.emplace(m_tick, 60000000 / SBig(tempo));
|
m_tempos.emplace(m_tick, 60000000 / SBig(tempo));
|
||||||
|
[[fallthrough]];
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
it += length;
|
it += length;
|
||||||
|
|
Loading…
Reference in New Issue