X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fkbmap.h;h=015bce9c3713953403cf45c60c103e6f1a1ab806;hb=a235c8b10f71c3d77930ba0fb3270991b1134203;hp=cfb4584ac7e99cd7d3ee96539cecd61d279ec89f;hpb=85798535a19919e82cc94a177a8414c542a9c5bf;p=lyx.git diff --git a/src/kbmap.h b/src/kbmap.h index cfb4584ac7..015bce9c37 100644 --- a/src/kbmap.h +++ b/src/kbmap.h @@ -17,8 +17,6 @@ #include "LString.h" -using std::list; - class kb_sequence; /// Defines key maps and actions for key sequences @@ -30,7 +28,7 @@ public: /** Bind a key-sequence to an action. Returns 0 on success. Otherwise, position in string where error occured. */ - int bind(char const * seq, int action); + int bind(string const & seq, int action); /// void print(string & buf) const; @@ -40,7 +38,7 @@ public: unsigned int mod, kb_sequence * seq) const; /// Given an action, find all keybindings. - string findbinding(int action) const; + string const findbinding(int action) const; private: /// struct kb_key { @@ -61,7 +59,7 @@ private: /// Define a new key sequence int defkey(kb_sequence * seq, int action, int idx = 0); /// - static string keyname(kb_key const & k); + static string const keyname(kb_key const & k); /// static @@ -71,7 +69,7 @@ private: return table.empty(); } /// - typedef list Table; + typedef std::list Table; /// Table table; };