]> git.lyx.org Git - lyx.git/blobdiff - src/pariterator.C
fix one ambiguity, and comment out a un-implemented operator
[lyx.git] / src / pariterator.C
index 8d6fe920564c616ec9b0541b7f71194d77dc1359..c4d027f540c742f2b9c0471b08d10750d1f0245d 100644 (file)
@@ -53,6 +53,18 @@ ParIterator & ParIterator::operator++()
 }
 
 
+ParIterator ParIterator::operator++(int)
+{
+       ParIterator tmp(*this);
+       forwardPar();
+       return tmp;
+}
+
+
+#if 0
+// Unused member functions. Also having this makes ParIterator not be
+// an forward iterator anymore. So unless we change that, this function
+// should not be compiled/used. (Lgb)
 ParIterator & ParIterator::operator--()
 {
 #ifdef WITH_WARNINGS
@@ -61,6 +73,7 @@ ParIterator & ParIterator::operator--()
 //     DocIterator::backwardPar();
        return *this;
 }
+#endif
 
 
 Paragraph & ParIterator::operator*() const