]> git.lyx.org Git - lyx.git/blobdiff - src/pariterator.C
fix reading the author field.
[lyx.git] / src / pariterator.C
index efb94c14ead80409cfba8491f8c1ad59534eb05c..8d6fe920564c616ec9b0541b7f71194d77dc1359 100644 (file)
@@ -8,10 +8,8 @@
  * Full author contact details are available in file CREDITS.
  */
 
-
 #include <config.h>
 
-
 #include "pariterator.h"
 
 #include "ParagraphList_fwd.h"
@@ -22,6 +20,7 @@
 
 using lyx::par_type;
 
+
 ///
 /// ParIterator
 ///
@@ -56,6 +55,9 @@ ParIterator & ParIterator::operator++()
 
 ParIterator & ParIterator::operator--()
 {
+#ifdef WITH_WARNINGS
+#warning look here
+#endif
 //     DocIterator::backwardPar();
        return *this;
 }
@@ -102,14 +104,16 @@ bool operator!=(ParIterator const & iter1, ParIterator const & iter2)
        return !(iter1 == iter2);
 }
 
-DocIterator
-makeDocIterator(ParIterator const & par, lyx::pos_type pos)
+
+DocIterator makeDocIterator(ParIterator const & par, lyx::pos_type pos)
 {
        DocIterator dit(par);
        dit.pos() = pos;
        return dit;
 }
 
+
+
 ///
 /// ParConstIterator
 ///
@@ -162,7 +166,9 @@ bool operator!=(ParConstIterator const & iter1, ParConstIterator const & iter2)
 }
 
 
+#ifdef WITH_WARNINGS
 #warning const correctness!
+#endif
 
 ParConstIterator par_const_iterator_begin(InsetBase const & inset)
 {