void Trans::InsertException(Trans::keyexc & exclist, char c,
string const & data, bool flag, tex_accent accent)
{
void Trans::InsertException(Trans::keyexc & exclist, char c,
string const & data, bool flag, tex_accent accent)
{
- // Find what key accent_2 is on - should check about accent_1 also
- int key;
-
- for(key = 0; key < 256; ++key) {
+ // Find what key accent_2 is on - should
+ // check about accent_1 also
+ int key = 0;
+ for(; key < 256; ++key) {
- InsertException(kmod_list_[accent_1]->exception_list,(char)key, allowed, true, accent_2);
+ InsertException(kmod_list_[accent_1]->exception_list,
+ static_cast<char>(key), allowed,
+ true, accent_2);
keymap_[key_from] = string_to;
if (lyxerr.debugging(Debug::KBMAP))
lyxerr << "\t`" << string_to << "'"
keymap_[key_from] = string_to;
if (lyxerr.debugging(Debug::KBMAP))
lyxerr << "\t`" << string_to << "'"
if ((t == 0 && (*dt = c)) || (t[0] != 0 && (dt = t)) ){
return k.normalkey(c, dt);
} else {
if ((t == 0 && (*dt = c)) || (t[0] != 0 && (dt = t)) ){
return k.normalkey(c, dt);
} else {