Skip to content

Commit

Permalink
Fix minor issue found by clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkewley committed Sep 15, 2024
1 parent 3058b57 commit b9ef83a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oscar/Platform/Event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct osc::Converter<Uint16, KeyModifier> final {
KeyModifier operator()(Uint16 mod) const
{
KeyModifier rv = KeyModifier::None;
for (const auto [sdl_modifier, osc_modifier] : c_mappings_) {
for (const auto& [sdl_modifier, osc_modifier] : c_mappings_) {
if (mod & sdl_modifier) {
rv |= osc_modifier;
}
Expand Down

0 comments on commit b9ef83a

Please sign in to comment.