]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetIndex.cpp
Inset::addToToc(): change signature. Use DocIterator instead of ParConstIterator...
[lyx.git] / src / insets / InsetIndex.cpp
index c6a008c5f111b79792c95eab4e12a9cb6c67355e..9733467679e0d8c2ba355f15abc659ca76f6e8f9 100644 (file)
@@ -93,10 +93,10 @@ void InsetIndex::write(ostream & os) const
 }
 
 
-void InsetIndex::addToToc(ParConstIterator const & cpit) const
+void InsetIndex::addToToc(DocIterator const & cpit)
 {
-       ParConstIterator pit = cpit;
-       pit.push_back(*this);
+       DocIterator pit = cpit;
+       pit.push_back(CursorSlice(*this));
 
        Toc & toc = buffer().tocBackend().toc("index");
        docstring str;