#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"
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;
}
}