]> git.lyx.org Git - lyx.git/blobdiff - src/Trans.h
Revert "Reimplement support for numbering of equation previews"
[lyx.git] / src / Trans.h
index 7bfea6b545d937c60104fe707e5748ae270734a7..c200bb9544b4c7714eaf7a04f3569ddbdbe75095 100644 (file)
@@ -90,6 +90,8 @@ extern TeXAccent get_accent(FuncCode action);
 
 ///
 struct Keyexc {
+       ///
+       Keyexc() : c('\0'), combined(false), accent(TEX_NOACCENT) {}
        /// character to make exception
        char_type c;
        /// exception data
@@ -106,6 +108,8 @@ typedef std::list<Keyexc> KmodException;
 ///
 class KmodInfo {
 public:
+       ///
+       KmodInfo() : accent(TEX_NOACCENT) {}
        ///
        docstring data;
        ///
@@ -234,11 +238,11 @@ public:
        ///
        TransInitState();
        ///
-       virtual docstring const normalkey(char_type);
+       docstring const normalkey(char_type) override;
        ///
-       virtual bool backspace() { return true; }
+       bool backspace() override { return true; }
        ///
-       virtual docstring const deadkey(char_type, KmodInfo);
+       docstring const deadkey(char_type, KmodInfo) override;
 };
 
 
@@ -248,14 +252,14 @@ public:
        ///
        TransDeadkeyState();
        ///
-       virtual docstring const normalkey(char_type);
+       docstring const normalkey(char_type) override;
        ///
-       virtual bool backspace() {
+       bool backspace() override {
                currentState = init_state_;
                return false;
        }
        ///
-       virtual docstring const deadkey(char_type, KmodInfo);
+       docstring const deadkey(char_type, KmodInfo) override;
 };
 
 
@@ -265,9 +269,9 @@ public:
        ///
        TransCombinedState();
        ///
-       virtual docstring const normalkey(char_type);
+       docstring const normalkey(char_type) override;
        ///
-       virtual bool backspace() {
+       bool backspace() override {
                // cancel the second deadkey
                deadkey2_ = 0;
                deadkey2_info_.accent = TEX_NOACCENT;
@@ -276,7 +280,7 @@ public:
                return false;
        }
        ///
-       virtual docstring const deadkey(char_type, KmodInfo);
+       docstring const deadkey(char_type, KmodInfo) override;
 };