int kb_keymap::defkey(kb_sequence * seq, int action, int idx /*= 0*/)
{
unsigned int code = seq->sequence[idx];
- if(code == NoSymbol) return -1;
+ if (code == NoSymbol) return -1;
unsigned int modmsk = seq->modifiers[idx];
<< buf
<< "' is overriding old binding..."
<< endl;
- if((*it).table) {
+ if ((*it).table) {
delete (*it).table;
(*it).table = 0;
}
{
// This could be done by a destructor in kb_key.
Table::iterator end = table.end();
- for(Table::iterator it = table.begin(); it != end; ++it) {
+ for (Table::iterator it = table.begin(); it != end; ++it) {
delete (*it).table;
}
}
if (table.empty()) return res;
Table::const_iterator end = table.end();
- for(Table::const_iterator cit = table.begin();
+ for (Table::const_iterator cit = table.begin();
cit != end; ++cit) {
if ((*cit).table) {
string suffix = (*cit).table->findbinding(act);
+ suffix + "] ";
}
} else if ((*cit).action == act) {
- res += "[" + keyname((*cit)) + "] ";
+ res += "[";
+ res += keyname((*cit));
+ res += "] ";
}
}
return res;