]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
gcc compile fix: vector::insert() requires an iterator, not a const_iterator.
[lyx.git] / src / Buffer.cpp
index 5617a690dcb098c1d6c909a0af625061394947c0..434f56103ab63027f257b7ced4414aed19612e63 100644 (file)
@@ -2103,7 +2103,7 @@ void Buffer::changeRefsIfUnique(docstring const & from, docstring const & to,
 
 
 void Buffer::getSourceCode(odocstream & os, pit_type par_begin,
-       pit_type par_end, bool full_source)
+       pit_type par_end, bool full_source) const
 {
        OutputParams runparams(&params().encoding());
        runparams.nice = true;
@@ -2158,6 +2158,14 @@ ErrorList & Buffer::errorList(string const & type) const
 }
 
 
+void Buffer::updateTocItem(std::string const & type,
+       DocIterator const & dit) const
+{
+       if (gui_)
+               gui_->updateTocItem(type, dit);
+}
+
+
 void Buffer::structureChanged() const
 {
        if (gui_)