]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/key_state.h
Fix bug 1749. CAUTION: lyx2lyx not fully working yet (see FIXMEs).
[lyx.git] / src / frontends / key_state.h
index ce77e170c38f76ac6da8c0511a60aba686b8ebf2..94736ecdc8d02909da73ee3fea1669469354f24e 100644 (file)
@@ -14,6 +14,8 @@
 #ifndef KEY_STATE_H
 #define KEY_STATE_H
 
+namespace lyx {
+
 /// modifier key states
 namespace key_modifier {
 
@@ -27,8 +29,8 @@ enum state {
 
 inline state operator|(state const & s1, state const & s2)
 {
-       int const i1(static_cast<int>(s1));
-       int const i2(static_cast<int>(s2));
+       int const i1 = static_cast<int>(s1);
+       int const i2 = static_cast<int>(s2);
        return static_cast<state>(i1 | i2);
 }
 
@@ -40,4 +42,7 @@ inline void operator|=(state & s1, state s2)
 
 } // namespace key_modifier
 
+
+} // namespace lyx
+
 #endif // KEY_STATE_H