Fix several warnings regarding unused variable/arguments.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3026 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2001-11-14 09:46:05 +00:00
parent c80a4abde9
commit ee7037edbb
5 changed files with 13 additions and 9 deletions

View File

@ -3197,9 +3197,7 @@ void Buffer::makeDocBookFile(string const & fname, bool nice, bool only_body)
break;
}
string extra_par;
simpleDocBookOnePar(ofs, extra_par, par, desc_on,
depth + 1 + command_depth);
simpleDocBookOnePar(ofs, par, desc_on, depth+1+command_depth);
par = par->next();
string end_tag;
@ -3264,7 +3262,7 @@ void Buffer::makeDocBookFile(string const & fname, bool nice, bool only_body)
}
void Buffer::simpleDocBookOnePar(ostream & os, string & extra,
void Buffer::simpleDocBookOnePar(ostream & os,
Paragraph * par, int & desc_on,
Paragraph::depth_type depth) const
{

View File

@ -164,7 +164,7 @@ public:
Paragraph * endpar, TexRow & texrow) const;
///
void simpleDocBookOnePar(std::ostream &, string & extra,
void simpleDocBookOnePar(std::ostream &,
Paragraph * par, int & desc_on,
Paragraph::depth_type depth) const ;
///

View File

@ -1,3 +1,10 @@
2001-11-14 José Matos <jamatos@fep.up.pt>
* insetspecialchar.C (linuxdoc):
(docbook): don't give a name to a unused variable.
* insettext.C (docbook): removed unused variable.
2001-11-13 Herbert Voss <voss@perce.de>
* insetgraphic.C: fix scale bug

View File

@ -263,7 +263,7 @@ int InsetSpecialChar::ascii(Buffer const *, ostream & os, int) const
}
int InsetSpecialChar::linuxdoc(Buffer const * buf, ostream & os) const
int InsetSpecialChar::linuxdoc(Buffer const *, ostream & os) const
{
switch (kind_) {
case HYPHENATION:
@ -286,7 +286,7 @@ int InsetSpecialChar::linuxdoc(Buffer const * buf, ostream & os) const
}
int InsetSpecialChar::docbook(Buffer const * buf, ostream & os) const
int InsetSpecialChar::docbook(Buffer const *, ostream & os) const
{
switch (kind_) {
case HYPHENATION:

View File

@ -1497,8 +1497,7 @@ int InsetText::docbook(Buffer const * buf, ostream & os) const
break;
}
string extra_par;
buf->simpleDocBookOnePar(os, extra_par, p, desc_on,
buf->simpleDocBookOnePar(os, p, desc_on,
depth + 1 + command_depth);
p = p->next();