]> git.lyx.org Git - lyx.git/blobdiff - src/pariterator.C
clone NVI, other small stuff
[lyx.git] / src / pariterator.C
index f38f440a4bd40afe88fd9cba6686878951dddc92..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
@@ -166,7 +179,9 @@ bool operator!=(ParConstIterator const & iter1, ParConstIterator const & iter2)
 }
 
 
+#ifdef WITH_WARNINGS
 #warning const correctness!
+#endif
 
 ParConstIterator par_const_iterator_begin(InsetBase const & inset)
 {