Add missing const to some insettoc methods

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@562 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2000-02-21 13:53:54 +00:00
parent 5ba861bb09
commit d5134a917d
3 changed files with 9 additions and 4 deletions

View File

@ -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

View 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;

View 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;