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);
- string_to = strcpy(new char[strlen(t)+1], t);
- if (key_from == char(254))
- lyxerr << "check two triggered"
- << endl;
+ char * string_to =
+ strcpy(new char[strlen(t)+1], t);
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 << "'"