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
|
||||
}
|
||||
m_updateDisp = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -870,6 +871,7 @@ void EventCallback::specialKeyDown(boo::ESpecialKey key, boo::EModifierKey mods,
|
|||
break;
|
||||
case boo::ESpecialKey::Esc:
|
||||
m_app.m_breakout = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -893,6 +893,7 @@ AudioGroupSampleDirectory::toGCNData(const AudioGroupDatabase& group) const {
|
|||
case SampleFileState::WAVRecent:
|
||||
case SampleFileState::WAVNoCompressed:
|
||||
group.makeCompressedVersion(ent.first, ent.second.get().get());
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -206,6 +206,7 @@ DirectoryEnumerator::DirectoryEnumerator(SystemStringView path, Mode mode, bool
|
|||
if (mode == Mode::DirsSorted)
|
||||
break;
|
||||
rewinddir(dir);
|
||||
[[fallthrough]];
|
||||
}
|
||||
case Mode::FilesSorted: {
|
||||
if (mode == Mode::FilesSorted)
|
||||
|
|
|
@ -291,19 +291,24 @@ void Sequencer::ChannelState::setCtrlValue(uint8_t ctrl, int8_t val) {
|
|||
// RPN LSB
|
||||
m_rpn &= ~0x7f;
|
||||
m_rpn |= val;
|
||||
break;
|
||||
case 99:
|
||||
// RPN MSB
|
||||
m_rpn &= ~0x3f80;
|
||||
m_rpn |= val << 7;
|
||||
break;
|
||||
case 6:
|
||||
if (m_rpn == 0)
|
||||
m_pitchWheelRange = val;
|
||||
break;
|
||||
case 96:
|
||||
if (m_rpn == 0)
|
||||
m_pitchWheelRange += 1;
|
||||
break;
|
||||
case 97:
|
||||
if (m_rpn == 0)
|
||||
m_pitchWheelRange -= 1;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -144,6 +144,7 @@ public:
|
|||
uint32_t tempo = 0;
|
||||
memcpy(&reinterpret_cast<uint8_t*>(&tempo)[1], &*it, 3);
|
||||
m_tempos.emplace(m_tick, 60000000 / SBig(tempo));
|
||||
[[fallthrough]];
|
||||
}
|
||||
default:
|
||||
it += length;
|
||||
|
|
Loading…
Reference in New Issue