mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Save a few bytes.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26516 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5a579070c4
commit
6cde86e1d7
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user