X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FKeyMap.cpp;h=c5c387f28f8398617377225c7a102dc31d06f7f2;hb=9a1b26a156c913f484ca2293fb2ec1c4986d2a3e;hp=e18fb74e7e4299ca221449d42ea5e65c7c57a590;hpb=55c9bc218a0dac64d9df1d24532453194f8e9674;p=lyx.git diff --git a/src/KeyMap.cpp b/src/KeyMap.cpp index e18fb74e7e..c5c387f28f 100644 --- a/src/KeyMap.cpp +++ b/src/KeyMap.cpp @@ -68,7 +68,7 @@ size_t KeyMap::bind(string const & seq, FuncRequest const & func) LYXERR(Debug::KBMAP, "BIND: Sequence `" << seq << "' Action `" << func.action() << '\''); - KeySequence k(0, 0); + KeySequence k(nullptr, nullptr); string::size_type const res = k.parse(seq); if (res == string::npos) { @@ -84,7 +84,7 @@ size_t KeyMap::bind(string const & seq, FuncRequest const & func) size_t KeyMap::unbind(string const & seq, FuncRequest const & func) { - KeySequence k(0, 0); + KeySequence k(nullptr, nullptr); string::size_type const res = k.parse(seq); if (res == string::npos) @@ -497,7 +497,7 @@ docstring KeyMap::printBindings(FuncRequest const & func, KeyMap::Bindings KeyMap::findBindings(FuncRequest const & func) const { - return findBindings(func, KeySequence(0, 0)); + return findBindings(func, KeySequence(nullptr, nullptr)); } @@ -529,7 +529,7 @@ KeyMap::Bindings KeyMap::findBindings(FuncRequest const & func, KeyMap::BindingList KeyMap::listBindings(bool unbound, KeyMap::ItemType tag) const { BindingList list; - listBindings(list, KeySequence(0, 0), tag); + listBindings(list, KeySequence(nullptr, nullptr), tag); if (unbound) { LyXAction::const_iterator fit = lyxaction.func_begin(); LyXAction::const_iterator const fen = lyxaction.func_end(); @@ -544,7 +544,7 @@ KeyMap::BindingList KeyMap::listBindings(bool unbound, KeyMap::ItemType tag) con break; } if (!has_action) - list.push_back(Binding(FuncRequest(action), KeySequence(0, 0), tag)); + list.push_back(Binding(FuncRequest(action), KeySequence(nullptr, nullptr), tag)); } } return list;