]> git.lyx.org Git - lyx.git/blobdiff - src/trans_mgr.C
fix "make dist" target
[lyx.git] / src / trans_mgr.C
index 88b4190e48ee0d3922946376850910e04c3e089b..ba0568ef15c27eaaa4085b3d496437c0b7eaf989 100644 (file)
@@ -15,6 +15,7 @@
 #include "buffer.h"
 #include "lyxrc.h"
 #include "support/lstrings.h"
+#include "language.h"
 
 using std::endl;
 using std::pair;
@@ -159,8 +160,7 @@ string const TransCombinedState::normalkey(char c, string const & trans)
        
        // Check if the key is allowed on the combination
        if (countChar(comb_info_->data, c) > 0) {
-               string temp;
-               temp = DoAccent(c, deadkey2_info_.accent);
+               string const temp = DoAccent(c, deadkey2_info_.accent);
                res = DoAccent(temp, deadkey_info_.accent);
                currentState = init_state_;
        } else {
@@ -332,7 +332,8 @@ void TransManager::deadkey(char c, tex_accent accent, LyXText * t)
                // or a accent command was typed in the minibuffer
                KmodInfo i;
                if (active_->isAccentDefined(accent, i) == true) {
-                       string res = trans_fsm_.currentState->deadkey(c, i);
+                       string const res = trans_fsm_
+                               .currentState->deadkey(c, i);
                        insert(res, t);
                        return;
                }