Skip to content

Commit

Permalink
Fix build with Apple clang
Browse files Browse the repository at this point in the history
Strangely enough, other versions of clang work fine...

See longturn#1117.
  • Loading branch information
lmoureaux committed Jul 10, 2022
1 parent 32f654b commit 82de508
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/shortcuts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,10 @@ void fc_shortcuts::create_no_action_shortcuts(map_view *parent)
}

// Create new ones
for (const auto &[id, shortcut] : shortcuts()) {
for (const auto &pair : shortcuts()) {
// No structued bindings because of clang, see #1117
auto id = pair.first;
auto shortcut = pair.second;
if (shortcut.type == fc_shortcut::keyboard) {
if (m_actions.count(id) == 0 || m_actions[id] == nullptr) {
auto qs = new QShortcut(shortcut.keys, parent);
Expand Down

0 comments on commit 82de508

Please sign in to comment.