]> git.lyx.org Git - lyx.git/blobdiff - src/TocBackend.cpp
Amend 3093789e for cmake build
[lyx.git] / src / TocBackend.cpp
index f1e6c2d4e83d3e61ae089a4d9b8c2f972f4bedd1..d9ed95767a0de1ae426687473bd7e947a243de96 100644 (file)
@@ -153,7 +153,7 @@ TocBuilder & TocBackend::builder(string const & type)
 // TocItem creation and update should be made in a dedicated function and
 // updateItem should be rewritten to uniformly update the matching items from
 // all TOCs.
-bool TocBackend::updateItem(DocIterator const & dit_in)
+bool TocBackend::updateItem(DocIterator const & dit_in) const
 {
        // we need a text
        DocIterator dit = dit_in.getInnerText();
@@ -180,7 +180,7 @@ bool TocBackend::updateItem(DocIterator const & dit_in)
        //
        // FIXME: This is supposed to accomplish the same as the body of
        // InsetText::iterateForToc(), probably
-       Paragraph & par = toc_item->dit().paragraph();
+       Paragraph const & par = toc_item->dit().paragraph();
        for (auto const & table : par.insetList())
                if (InsetArgument const * arg = table.inset->asInsetArgument()) {
                        tocstring = par.labelString();