From 6cde86e1d709e7401c0260078315d7a09291b0c0 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 24 Sep 2008 13:32:09 +0000 Subject: [PATCH] Save a few bytes. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26516 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/KeyMap.cpp | 6 ++---- src/KeySequence.cpp | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) 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; }