]> git.lyx.org Git - features.git/commitdiff
Remove dead comment
authorRichard Kimberly Heck <rikiheck@lyx.org>
Fri, 6 Nov 2020 16:30:02 +0000 (11:30 -0500)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Fri, 6 Nov 2020 16:30:07 +0000 (11:30 -0500)
src/Buffer.cpp
src/ParIterator.cpp
src/ParIterator.h

index a6afadf1090fbd81c25426946d6c61bdca95011f..23f6315f5f63dc69cdc1878977dc6112883a3751 100644 (file)
@@ -3726,7 +3726,6 @@ void Buffer::Impl::updateMacros(DocIterator & it, DocIterator & scope)
        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;
index 8086d2fc36c32d089d08da6e01fc870ec6144c0e..09cee80accbc01cb4e336a310a3897c35199b170 100644 (file)
@@ -134,14 +134,14 @@ ParagraphList const & ParConstIterator::plist() const
        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);
index f1e2752009590d19297cbe7db73bc90282385f1b..e67732f98b57c1ed8aa52f0e028a17156b9a3fd9 100644 (file)
@@ -115,7 +115,7 @@ public:
        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);