]> git.lyx.org Git - lyx.git/blobdiff - src/pariterator.C
clone NVI, other small stuff
[lyx.git] / src / pariterator.C
index 217a64a4d93d767df793fa323bf93a8e66a37a3d..c4d027f540c742f2b9c0471b08d10750d1f0245d 100644 (file)
@@ -53,12 +53,27 @@ 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
 #warning look here
+#endif
 //     DocIterator::backwardPar();
        return *this;
 }
+#endif
 
 
 Paragraph & ParIterator::operator*() const
@@ -164,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)
 {