X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FTrans.cpp;h=5a0366568481965f9e97ee95258f9a7363d18161;hb=90ea50811191dc891d2b3407c01527f1f2d745dd;hp=2f0f317355f5bcb49df054c740b685e9f348af00;hpb=fe85162a29893e98bd3426d15c9a9eb62aa90f6b;p=features.git diff --git a/src/Trans.cpp b/src/Trans.cpp index 2f0f317355..5a03665684 100644 --- a/src/Trans.cpp +++ b/src/Trans.cpp @@ -13,12 +13,7 @@ #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; } }