]> git.lyx.org Git - lyx.git/blobdiff - src/kbmap.C
more guii moving around.
[lyx.git] / src / kbmap.C
index 26f7bbe66a13a923b4e0075e1499a9f4bca4b9eb..31d4c7b5a76a249ada696867f8bb27baff3a2464 100644 (file)
@@ -2,7 +2,7 @@
  * ======================================================
  *
  *           LyX, The Document Processor
- *     
+ *
  *           Copyright 1995 Matthias Ettrich
  *           Copyright 1995-2001 The LyX Team.
  *
@@ -34,7 +34,7 @@ string const kb_keymap::printKeysym(unsigned int key, unsigned int mod)
        mod &= ModsMask;
 
        char const * const s = XKeysymToString(key);
-       
+
        if (mod & ShiftMask) buf += "S-";
        if (mod & ControlMask) buf += "C-";
        if (mod & Mod1Mask) buf += "M-";
@@ -79,7 +79,7 @@ string::size_type kb_keymap::bind(string const & seq, int action)
                       << seq << "' Action `"
                       << action << "'" << endl;
        }
-       
+
        kb_sequence k(0, 0);
 
        string::size_type const res = k.parse(seq);
@@ -162,8 +162,8 @@ void kb_keymap::defkey(kb_sequence * seq, int action, unsigned int r)
                                        << seq->print()
                                        << "' is overriding old binding..."
                                        << endl;
-                                       if (it->table.get()) {
-                                       it->table.reset(0);
+                               if (it->table.get()) {
+                                       it->table.reset();
                                }
                                it->action = action;
                                return;
@@ -178,13 +178,13 @@ void kb_keymap::defkey(kb_sequence * seq, int action, unsigned int r)
                        }
                }
        }
-       
+
        Table::iterator newone = table.insert(table.end(), kb_key());
        newone->code = code;
        newone->mod = modmsk;
        if (r + 1 == seq->length()) {
                newone->action = action;
-               newone->table.reset(0);
+               newone->table.reset();
                return;
        } else {
                newone->table.reset(new kb_keymap);