]> git.lyx.org Git - lyx.git/blobdiff - src/toc.C
update no.po
[lyx.git] / src / toc.C
index b52154bc1b66e30eaaf94e2f067e9946b4c9ccd8..15f2481d922546448f2c5439e619115f79adc461 100644 (file)
--- a/src/toc.C
+++ b/src/toc.C
@@ -76,11 +76,11 @@ TocList const getTocList(Buffer const * buf)
 
        LyXTextClass const & textclass = buf->params.getLyXTextClass();
 
-       ParIterator pit = buf->par_iterator_begin();
-       ParIterator end = buf->par_iterator_end();
+       ParConstIterator pit = buf->par_iterator_begin();
+       ParConstIterator end = buf->par_iterator_end();
        for (; pit != end; ++pit) {
-               Paragraph * par = *pit;
+               Paragraph const * par = *pit;
+
 #ifdef WITH_WARNINGS
 #warning bogus type (Lgb)
 #endif