]> git.lyx.org Git - features.git/commitdiff
const correctness
authorAlfredo Braunstein <abraunst@lyx.org>
Fri, 22 Jun 2007 13:33:51 +0000 (13:33 +0000)
committerAlfredo Braunstein <abraunst@lyx.org>
Fri, 22 Jun 2007 13:33:51 +0000 (13:33 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18852 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/Inset.h
src/insets/InsetCaption.cpp
src/insets/InsetCaption.h

index 66a4e658daa60960537108a2129aa32b5b554cf9..443c7b1304df676bfe87d4dd38d036f4d23c8003 100644 (file)
@@ -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, ...)
index 831032b039b31a79bd351a5cf40eb7b0d6ba396a..7c986ea098a2bf8981ca66bdfd7c3566e036eacf 100644 (file)
@@ -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;
index 476f11bcca5b98a8846d7a9bfdc6dd7f97a277ca..e13cf46319eebdedd66b05cb2964d20fe50de4ea 100644 (file)
@@ -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; }