X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FKeyMap.cpp;h=f469da5c44d0326a55f945b2045e27bcd0989bbb;hb=fbc64ea7ee115bdc4a55c214f28de2166d71f6a2;hp=3698ddb64254d421bb619eb3408f009c82cf0fe9;hpb=b28bd27932c671963cc79013ade44f0513d57ca8;p=lyx.git diff --git a/src/KeyMap.cpp b/src/KeyMap.cpp index 3698ddb642..f469da5c44 100644 --- a/src/KeyMap.cpp +++ b/src/KeyMap.cpp @@ -531,10 +531,8 @@ KeyMap::BindingList KeyMap::listBindings(bool unbound, KeyMap::ItemType tag) con BindingList list; listBindings(list, KeySequence(nullptr, nullptr), tag); if (unbound) { - LyXAction::const_iterator fit = lyxaction.func_begin(); - LyXAction::const_iterator const fen = lyxaction.func_end(); - for (; fit != fen; ++fit) { - FuncCode action = fit->second; + for (auto const & name_code : lyxaction) { + FuncCode action = name_code.second; bool has_action = false; BindingList::const_iterator bit = list.begin(); BindingList::const_iterator const ben = list.end();