bool CEventHandler::CommandNotify(const Command& cmd) { // reverse order, user has the override const int count = listCommandNotify.size(); for (int i = (count - 1); i >= 0; i--) { CEventClient* ec = listCommandNotify[i]; if (ec->CommandNotify(cmd)) { return true; } } return false; }
bool CEventHandler::CommandNotify(const Command& cmd) { EVENTHANDLER_CHECK(CommandNotify, false); // reverse order, user has the override for (int i = (count - 1); i >= 0; i--) { CEventClient* ec = listCommandNotify[i]; if (ec->CommandNotify(cmd)) { return true; } } return false; }