mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +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,
|
FuncRequest const & KeyMap::lookup(KeySymbol const &key,
|
||||||
KeyModifier mod, KeySequence * seq) const
|
KeyModifier mod, KeySequence * seq) const
|
||||||
{
|
{
|
||||||
static FuncRequest const unknown(LFUN_UNKNOWN_ACTION);
|
|
||||||
|
|
||||||
if (table.empty()) {
|
if (table.empty()) {
|
||||||
seq->curmap = seq->stdmap;
|
seq->curmap = seq->stdmap;
|
||||||
seq->mark_deleted();
|
seq->mark_deleted();
|
||||||
return unknown;
|
return FuncRequest::unknown;
|
||||||
}
|
}
|
||||||
|
|
||||||
Table::const_iterator end = table.end();
|
Table::const_iterator end = table.end();
|
||||||
@ -295,7 +293,7 @@ FuncRequest const & KeyMap::lookup(KeySymbol const &key,
|
|||||||
seq->curmap = seq->stdmap;
|
seq->curmap = seq->stdmap;
|
||||||
seq->mark_deleted();
|
seq->mark_deleted();
|
||||||
|
|
||||||
return unknown;
|
return FuncRequest::unknown;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -40,8 +40,7 @@ FuncRequest const & KeySequence::addkey(KeySymbol const & key,
|
|||||||
if (curmap)
|
if (curmap)
|
||||||
return curmap->lookup(key, mod, this);
|
return curmap->lookup(key, mod, this);
|
||||||
|
|
||||||
static FuncRequest unknown(LFUN_UNKNOWN_ACTION);
|
return FuncRequest::unknown;
|
||||||
return unknown;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user