]> git.lyx.org Git - features.git/commitdiff
cosmetics
authorAndré Pönitz <poenitz@gmx.net>
Fri, 21 Mar 2008 22:31:57 +0000 (22:31 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 21 Mar 2008 22:31:57 +0000 (22:31 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23892 a592a061-630c-0410-9148-cb99ea01b6c8

src/KeyMap.cpp
src/KeyMap.h

index 77009b98e35d9b4672376995d72bf088a284682d..d1c7040c7d0c83dfe8fa491a20edd3392910386a 100644 (file)
@@ -250,7 +250,7 @@ bool KeyMap::read(string const & bind_file, KeyMap * unbind_map)
 void KeyMap::write(string const & bind_file, bool append, bool unbind) const
 {
        ofstream os(bind_file.c_str(), 
-               append ? (ios::app | ios:: out): ios::out);
+               append ? (ios::app | ios::out) : ios::out);
 
        if (!append)
                os << "## This file is automatically generated by lyx\n"
@@ -403,7 +403,7 @@ void KeyMap::unbind(KeySequence * seq, FuncRequest const & func, unsigned int r)
                                        remove = it;
                                        if (it->table.get())
                                                it->table.reset();
-                                       }
+                               }
                        } else if (it->table.get()) {
                                it->table->unbind(seq, func, r + 1);
                                if (it->table->empty())
index acb0c22110ccdd0093a52aadd9e4a0802dfee1a0..d715c9776aeb04d23c717e86e8839940d5f77358 100644 (file)
@@ -121,7 +121,6 @@ public:
        std::pair<KeySymbol, KeyModifier>
        find1keybinding(FuncRequest const & func) const;
 
-
        /**
         * Returns a string of the given keysym, with modifiers.
         * @param key the key as a keysym
@@ -130,10 +129,10 @@ public:
        static std::string const printKeySym(KeySymbol const & key,
                                             KeyModifier mod);
 
+private:
+       ///
        typedef std::pair<KeyModifier, KeyModifier> ModifierPair;
 
-
-private:
        ///
        struct Key {
                /// Keysym