diff --git a/src/KeyMap.cpp b/src/KeyMap.cpp index 19ce93464d..966b4e235e 100644 --- a/src/KeyMap.cpp +++ b/src/KeyMap.cpp @@ -262,12 +262,10 @@ void KeyMap::write(string const & bind_file, bool append, bool unbind) const FuncRequest const & KeyMap::lookup(KeySymbol const &key, KeyModifier mod, KeySequence * seq) const { - static FuncRequest const unknown(LFUN_UNKNOWN_ACTION); - if (table.empty()) { seq->curmap = seq->stdmap; seq->mark_deleted(); - return unknown; + return FuncRequest::unknown; } Table::const_iterator end = table.end(); @@ -295,7 +293,7 @@ FuncRequest const & KeyMap::lookup(KeySymbol const &key, seq->curmap = seq->stdmap; seq->mark_deleted(); - return unknown; + return FuncRequest::unknown; } diff --git a/src/KeySequence.cpp b/src/KeySequence.cpp index 5a7623b7f6..ef1cc33e24 100644 --- a/src/KeySequence.cpp +++ b/src/KeySequence.cpp @@ -40,8 +40,7 @@ FuncRequest const & KeySequence::addkey(KeySymbol const & key, if (curmap) return curmap->lookup(key, mod, this); - static FuncRequest unknown(LFUN_UNKNOWN_ACTION); - return unknown; + return FuncRequest::unknown; }