From d5134a917d3056d1f5d0a957b29c15374279a7b7 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 21 Feb 2000 13:53:54 +0000 Subject: [PATCH] Add missing const to some insettoc methods git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@562 a592a061-630c-0410-9148-cb99ea01b6c8 --- ChangeLog | 5 +++++ src/insets/insettoc.C | 4 ++-- src/insets/insettoc.h | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index a83b224a55..c9e712ec00 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-02-21 Jean-Marc Lasgouttes + + * src/insets/insettoc.[Ch] (LinuxDoc, DocBook): mark the methods + as const. + 2000-02-18 Lars Gullik Bjønnes * WorkArea, Painter, LyXScreen: Fixed the crash that occured on diff --git a/src/insets/insettoc.C b/src/insets/insettoc.C index d7da8300c1..10c2e58420 100644 --- a/src/insets/insettoc.C +++ b/src/insets/insettoc.C @@ -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 += ""; return 0; } -int InsetTOC::DocBook(string & file) +int InsetTOC::DocBook(string & file) const { file += ""; return 0; diff --git a/src/insets/insettoc.h b/src/insets/insettoc.h index a4d48766e4..db4871ff80 100644 --- a/src/insets/insettoc.h +++ b/src/insets/insettoc.h @@ -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; -- 2.39.2