fontlist.end(),
search_font, matchFT());
it != fontlist.end(); ++it)
- (*it).pos((*it).pos() + 1);
+ it->pos(it->pos() + 1);
// Update the inset table.
InsetTable search_inset(pos, 0);
owner_->insetlist.end(),
search_inset, matchIT());
it != owner_->insetlist.end(); ++it)
- ++(*it).pos;
+ ++it->pos;
owner_->setFont(pos, font);
}
InsetList::iterator it = std::lower_bound(owner_->insetlist.begin(),
owner_->insetlist.end(),
search_inset, matchIT());
- if (it != owner_->insetlist.end() && (*it).pos == pos) {
+ if (it != owner_->insetlist.end() && it->pos == pos) {
lyxerr << "ERROR (Paragraph::InsertInset): "
"there is an inset in position: " << pos << std::endl;
} else {
std::lower_bound(owner_->insetlist.begin(),
owner_->insetlist.end(),
search_inset, matchIT());
- if (it != owner_->insetlist.end() && (*it).pos == pos) {
- delete (*it).inset;
+ if (it != owner_->insetlist.end() && it->pos == pos) {
+ delete it->inset;
owner_->insetlist.erase(it);
}
}
std::lower_bound(fontlist.begin(),
fontlist.end(),
search_font, matchFT());
- if (it != fontlist.end() && (*it).pos() == pos &&
+ if (it != fontlist.end() && it->pos() == pos &&
(pos == 0 ||
(it != fontlist.begin()
- && (*(it - 1)).pos() == pos - 1))) {
+ && boost::prior(it)->pos() == pos - 1))) {
// If it is a multi-character font
// entry, we just make it smaller
// (see update below), otherwise we
// Update all other entries.
FontList::iterator fend = fontlist.end();
for (; it != fend; ++it)
- (*it).pos((*it).pos() - 1);
+ it->pos(it->pos() - 1);
// Update the inset table.
InsetTable search_inset(pos, 0);
lend,
search_inset, matchIT());
it != lend; ++it)
- --(*it).pos;
+ --it->pos;
}