mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
Use range-based loop
This commit is contained in:
parent
228d738868
commit
21567a260c
@ -604,14 +604,12 @@ bool Paragraph::hasChangedInsets(pos_type start, pos_type end) const
|
||||
LASSERT(start >= 0 && start <= size(), return false);
|
||||
LASSERT(end > start && end <= size() + 1, return false);
|
||||
|
||||
InsetList::const_iterator icit = d->insetlist_.begin();
|
||||
InsetList::const_iterator iend = d->insetlist_.end();
|
||||
for (; icit != iend; ++icit) {
|
||||
if (icit->pos < start)
|
||||
for (auto const icit : d->insetlist_) {
|
||||
if (icit.pos < start)
|
||||
continue;
|
||||
if (icit->pos >= end)
|
||||
if (icit.pos >= end)
|
||||
break;
|
||||
if (icit->inset && icit->inset->isChanged())
|
||||
if (icit.inset && icit.inset->isChanged())
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user