while (it.pit() <= lastpit) {
Paragraph & par = it.paragraph();
- // FIXME Can this be done with the new-style iterators?
// iterate over the insets of the current paragraph
for (auto const & insit : par.insetList()) {
it.pos() = insit.pos;
return text()->paragraphs();
}
-#if 0
bool operator==(ParConstIterator const & iter1, ParConstIterator const & iter2)
{
- // FIXME: this makes two full copies!
- return DocIterator(iter1) == DocIterator(iter2);
+ DocIterator const * dit1 = &iter1;
+ DocIterator const * dit2 = &iter2;
+ return *dit1 == *dit2;
}
-
+#if 0
bool operator!=(ParConstIterator const & iter1, ParConstIterator const & iter2)
{
return !(iter1 == iter2);
ParagraphList const & plist() const;
};
-//bool operator==(ParConstIterator const & it1, ParConstIterator const & it2);
+bool operator==(ParConstIterator const & it1, ParConstIterator const & it2);
//bool operator!=(ParConstIterator const & it1, ParConstIterator const & it2);