Replace range-based for loop with std::fill

Use standard algorithm std::fill instead of manual loop to clear bleKeyMap array. This is more idiomatic C++ and expresses intent more clearly.
This commit is contained in:
Justin Mitchell
2026-06-24 17:15:44 -04:00
parent 568831f232
commit 28d0d6f5d2
4 changed files with 31 additions and 27 deletions
+1 -1
View File
@@ -44,6 +44,6 @@ void describeKey(uint8_t kind, uint8_t value, char* out, size_t outLen);
// Draw a "BT Connecting..." popup and pump the BLE host until the bonded remote
// links, the user presses a button to dismiss, or a timeout. No-op if BLE isn't
// running or is already connected. The caller must redraw afterward to clear it.
void showConnectingUntilLinked(GfxRenderer& renderer, MappedInputManager& input);
void showConnectingUntilLinked(const GfxRenderer& renderer, const MappedInputManager& input);
} // namespace bleinput