void Shortcuts_foreach(Shortcuts& shortcuts, CommandVisitor& visitor) { for(Shortcuts::iterator i = shortcuts.begin(); i != shortcuts.end(); ++i) { visitor.visit((*i).first.c_str(), (*i).second.first); } }
void GlobalShortcuts_reportUnregistered(){ for ( Shortcuts::iterator i = g_shortcuts.begin(); i != g_shortcuts.end(); ++i ) { if ( ( *i ).second.first.key != 0 && !( *i ).second.second ) { globalOutputStream() << "shortcut not registered: " << ( *i ).first.c_str() << "\n"; } } }