return LFUN_UNKNOWN_ACTION;
}
- arg_item::const_iterator aci = (*pit).second.find(arg);
+ arg_item::const_iterator aci = pit->second.find(arg);
- if (aci == (*pit).second.end()) {
+ if (aci == pit->second.end()) {
// the action does not have any pseudoactions with this arg
lyxerr[Debug::ACTION]
<< "Action " << action
// pseudo action exist
lyxerr[Debug::ACTION] << "Pseudoaction exist["
<< action << '|'
- << arg << "] = " << (*aci).second << endl;
+ << arg << "] = " << aci->second << endl;
- return (*aci).second;
+ return aci->second;
}
// get the arg_item map
arg_map::iterator ami = lyx_arg_map.find(action);
// put the new pseudo function in it
- (*ami).second[arg] = pseudo_counter;
+ ami->second[arg] = pseudo_counter;
lyxerr[Debug::ACTION] << "Creating new pseudoaction "
<< pseudo_counter << " for [" << action
if (pit != lyx_pseudo_map.end()) {
lyxerr[Debug::ACTION] << "Found the pseudoaction: ["
- << (*pit).second.action << '|'
- << (*pit).second.arg << '\n';
- arg = (*pit).second.arg;
- return (*pit).second.action;
+ << pit->second.action << '|'
+ << pit->second.arg << '\n';
+ arg = pit->second.arg;
+ return pit->second.action;
} else {
lyxerr << "Lyx Error: Unrecognized pseudo-action\n";
return LFUN_UNKNOWN_ACTION;
if (!argstr.empty() && fit != lyx_func_map.end()) {
// might be pseudo (or create one)
- return getPseudoAction((*fit).second, argstr);
+ return getPseudoAction(fit->second, argstr);
}
- return fit != lyx_func_map.end() ? (*fit).second : LFUN_UNKNOWN_ACTION;
+ return fit != lyx_func_map.end() ? fit->second : LFUN_UNKNOWN_ACTION;
}
lyx_func_map.lower_bound(func);
if (fit != lyx_func_map.end()) {
- action = (*fit).second;
+ action = fit->second;
}
} else { // Go get the next function
func_map::const_iterator fit =
lyx_func_map.upper_bound(func);
if (fit != lyx_func_map.end()) {
- action = (*fit).second;
+ action = fit->second;
}
}
info_map::const_iterator iit = lyx_info_map.find(ac);
if (iit != lyx_info_map.end()) {
- string ret((*iit).second.name);
+ string ret(iit->second.name);
ret += arg;
return ret;
} else
if (lyxerr.debugging(Debug::ACTION)) {
lyxerr << "Action: " << action << '\n';
lyxerr << " name: "
- << (*ici).second.name << '\n';
+ << ici->second.name << '\n';
lyxerr << " attrib: "
- << (*ici).second.attrib << '\n';
+ << ici->second.attrib << '\n';
lyxerr << " help: "
- << (*ici).second.helpText << '\n';
+ << ici->second.helpText << '\n';
}
- help = (*ici).second.helpText;
+ help = ici->second.helpText;
// if the is no help text use the name of the func instead.
- if (help.empty()) help = (*ici).second.name;
+ if (help.empty()) help = ici->second.name;
}
if (help.empty()) {
info_map::const_iterator ici = lyx_info_map.find(action);
if (ici != lyx_info_map.end()) {
- return (*ici).second.attrib & flag;
+ return ici->second.attrib & flag;
} else {
// it really should exist, but...
lyxerr << "LyXAction::funcHasFlag: "