]> git.lyx.org Git - lyx.git/blobdiff - src/Trans.cpp
Fixup 1d08af62: unused variable
[lyx.git] / src / Trans.cpp
index 2f0f317355f5bcb49df054c740b685e9f348af00..5a0366568481965f9e97ee95258f9a7363d18161 100644 (file)
 
 #include "Trans.h"
 
-#include "Buffer.h"
-#include "BufferView.h"
-#include "Cursor.h"
-#include "CutAndPaste.h"
 #include "Lexer.h"
-#include "LyXRC.h"
 #include "Text.h"
 
 #include "support/debug.h"
@@ -186,14 +181,14 @@ void Trans::addDeadkey(tex_accent accent, docstring const & keys)
        tmp.accent = accent;
        kmod_list_[accent] = tmp;
 
-       for (docstring::size_type i = 0; i < keys.length(); ++i) {
+       for (char_type key : keys) {
                // FIXME This is a hack.
                // tmp is no valid UCS4 string, but misused to store the
                // accent.
                docstring tmpd;
                tmpd += char_type(0);
                tmpd += char_type(accent);
-               keymap_[keys[i]] = tmpd;
+               keymap_[key] = tmpd;
        }
 }