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;