diff --git a/src/insets/InsetInclude.cpp b/src/insets/InsetInclude.cpp index 1e023fba10..a755de4109 100644 --- a/src/insets/InsetInclude.cpp +++ b/src/insets/InsetInclude.cpp @@ -882,7 +882,7 @@ void InsetInclude::addPreview(graphics::PreviewLoader & ploader) const } -void InsetInclude::addToToc(TocList & toclist, Buffer const & buffer, ParConstIterator & pit) const +void InsetInclude::addToToc(TocList & toclist, Buffer const & buffer, ParConstIterator const & pit) const { if (isListings(params_)) { InsetListingsParams params(params_.getOptions()); diff --git a/src/insets/InsetInclude.h b/src/insets/InsetInclude.h index 873521592e..7e981b9c83 100644 --- a/src/insets/InsetInclude.h +++ b/src/insets/InsetInclude.h @@ -95,7 +95,7 @@ public: /// void addPreview(graphics::PreviewLoader &) const; /// - void addToToc(TocList &, Buffer const &, ParConstIterator &) const; + void addToToc(TocList &, Buffer const &, ParConstIterator const &) const; /// void updateLabels(Buffer const & buffer) const; ///