]> git.lyx.org Git - lyx.git/blobdiff - src/DocIterator.h
Force a Buffer * argument to math insets constructor
[lyx.git] / src / DocIterator.h
index 5e6ae6c166232ae1ba8e51a2119b1e0996f4558e..9475fcfb78e44c18d795816f6f438bbcd9017fb0 100644 (file)
@@ -28,8 +28,8 @@ class MathAtom;
 class Paragraph;
 class Text;
 
-DocIterator doc_iterator_begin(Buffer const * buf, Inset const * inset = 0);
-DocIterator doc_iterator_end(Buffer const * buf, Inset const * inset = 0);
+DocIterator doc_iterator_begin(Buffer const * buf, Inset const * inset = nullptr);
+DocIterator doc_iterator_end(Buffer const * buf, Inset const * inset = nullptr);
 
 
 class DocIterator
@@ -215,8 +215,7 @@ public:
        /// move backward one paragraph
        void backwardPar();
        /// move backward one inset
-       /// not used currently, uncomment if you need it
-       //void backwardInset();
+       void backwardInset();
 
        /// are we some 'extension' (i.e. deeper nested) of the given iterator
        bool hasPart(DocIterator const & it) const;