]> git.lyx.org Git - features.git/commitdiff
Add missing const to some insettoc methods
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 21 Feb 2000 13:53:54 +0000 (13:53 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 21 Feb 2000 13:53:54 +0000 (13:53 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@562 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
src/insets/insettoc.C
src/insets/insettoc.h

index a83b224a55681f618d2a50d5ae41b525e5d41ff2..c9e712ec00bae59d3ad93d4ecbbc62674a7a4a5c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-02-21  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
+
+       * src/insets/insettoc.[Ch] (LinuxDoc, DocBook): mark the methods
+       as const.
+
 2000-02-18  Lars Gullik Bjønnes  <larsbj@lyx.org>
 
        * WorkArea, Painter, LyXScreen: Fixed the crash that occured on
index d7da8300c1b2eec269e29d8eddfc6b119ac0ab81..10c2e58420c82e052dfbb3a3dd51d00f25b9bd31 100644 (file)
@@ -18,14 +18,14 @@ void InsetTOC::Edit(int, int)
        current_view->owner()->getLyXFunc()->Dispatch(LFUN_TOCVIEW);
 }
 
-int InsetTOC::Linuxdoc(string & file)
+int InsetTOC::Linuxdoc(string & file) const
 {
        file += "<toc>";
        return 0;
 }
 
 
-int InsetTOC::DocBook(string & file)
+int InsetTOC::DocBook(string & file) const
 {
        file += "<toc></toc>";
        return 0;
index a4d48766e4b21b5df2dd1d20dc193f73331987ec..db4871ff80093e17a2b8a45d0a64d91e17d4da97 100644 (file)
@@ -44,9 +44,9 @@ public:
        ///
        Inset::Code LyxCode() const { return Inset::TOC_CODE; }
        ///
-       int Linuxdoc(string & file);
+       int Linuxdoc(string & file) const;
        ///
-       int DocBook(string & file);
+       int DocBook(string & file) const;
 private:
        ///
        Buffer * owner;