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:
Richard Heck 2008-09-24 13:32:09 +00:00
parent 5a579070c4
commit 6cde86e1d7
2 changed files with 3 additions and 6 deletions

View File

@ -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;
}

View File

@ -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;
}