]> git.lyx.org Git - lyx.git/blobdiff - src/kbmap.C
remove redundant lyxerr.debugging checks; macro LYXERR already checks whether the...
[lyx.git] / src / kbmap.C
index b026b8630fee0a19c8565bfd159533b79080bc18..a9d1460c85f2ed0207586e3b1ba6187b3e4aa8be 100644 (file)
@@ -57,11 +57,9 @@ string const kb_keymap::printKeySym(LyXKeySym const & key,
 
 string::size_type kb_keymap::bind(string const & seq, FuncRequest const & func)
 {
-       if (lyxerr.debugging(Debug::KBMAP)) {
-               lyxerr << "BIND: Sequence `"
-                      << seq << "' Action `"
-                      << func.action << '\'' << endl;
-       }
+       LYXERR(Debug::KBMAP) << "BIND: Sequence `"
+              << seq << "' Action `"
+              << func.action << '\'' << endl;
 
        kb_sequence k(0, 0);
 
@@ -69,7 +67,7 @@ string::size_type kb_keymap::bind(string const & seq, FuncRequest const & func)
        if (res == string::npos) {
                defkey(&k, func);
        } else {
-               lyxerr[Debug::KBMAP] << "Parse error at position " << res
+               LYXERR(Debug::KBMAP) << "Parse error at position " << res
                                     << " in key sequence '" << seq << "'."
                                     << endl;
        }
@@ -109,7 +107,7 @@ bool kb_keymap::read(string const & bind_file)
                return false;
        }
 
-       lyxerr[Debug::KBMAP] << "Reading bind file:" << tmp << endl;
+       LYXERR(Debug::KBMAP) << "Reading bind file:" << tmp << endl;
 
        bool error = false;
        while (lexrc.isOK()) {
@@ -244,7 +242,7 @@ void kb_keymap::defkey(kb_sequence * seq,
                    && mod2 == it->mod.second) {
                        // overwrite binding
                        if (r + 1 == seq->length()) {
-                               lyxerr[Debug::KBMAP]
+                               LYXERR(Debug::KBMAP)
                                        << "Warning: New binding for '"
                                        << to_utf8(seq->print(false))
                                        << "' is overriding old binding..."