Implicit switch fallthrough refactor

This commit is contained in:
Jack Andersen 2019-02-17 19:45:24 -10:00
parent 54ef2dd73b
commit 9f2bb1b371
5 changed files with 10 additions and 0 deletions

View File

@ -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;
} }

View File

@ -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;
} }

View File

@ -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)

View File

@ -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;
} }

View File

@ -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;