From fb963c2587c974f0102e450d1dbde653be5253aa Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Fri, 22 Jun 2007 13:33:51 +0000 Subject: [PATCH] const correctness git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18852 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/Inset.h | 2 +- src/insets/InsetCaption.cpp | 2 +- src/insets/InsetCaption.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/insets/Inset.h b/src/insets/Inset.h index 66a4e658da..443c7b1304 100644 --- a/src/insets/Inset.h +++ b/src/insets/Inset.h @@ -432,7 +432,7 @@ public: virtual void addPreview(graphics::PreviewLoader &) const {} /// Add an entry to the TocList /// pit is the ParConstIterator of the paragraph containing the inset - virtual void addToToc(TocList &, Buffer const &, ParConstIterator &) const {} + virtual void addToToc(TocList &, Buffer const &, ParConstIterator const &) const {} public: /// returns LyX code associated with the inset. Used for TOC, ...) diff --git a/src/insets/InsetCaption.cpp b/src/insets/InsetCaption.cpp index 831032b039..7c986ea098 100644 --- a/src/insets/InsetCaption.cpp +++ b/src/insets/InsetCaption.cpp @@ -115,7 +115,7 @@ void InsetCaption::setCustomLabel(docstring const & label) } -void InsetCaption::addToToc(TocList & toclist, Buffer const & buf, ParConstIterator &) const +void InsetCaption::addToToc(TocList & toclist, Buffer const & buf, ParConstIterator const &) const { if (type_.empty()) return; diff --git a/src/insets/InsetCaption.h b/src/insets/InsetCaption.h index 476f11bcca..e13cf46319 100644 --- a/src/insets/InsetCaption.h +++ b/src/insets/InsetCaption.h @@ -84,7 +84,7 @@ public: /// void setCustomLabel(docstring const & label); /// - void addToToc(TocList &, Buffer const &, ParConstIterator &) const; + void addToToc(TocList &, Buffer const &, ParConstIterator const &) const; /// Captions don't accept alignment, spacing, etc. bool forceDefaultParagraphs(idx_type) const { return true; } -- 2.39.2