* Nearly a proof that there are useful compiler warnings that a variable is not used,

though in this case the warning was "fixed" before it did its job.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22561 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2008-01-14 21:52:57 +00:00
parent afa6389644
commit e0538043e4
2 changed files with 3 additions and 3 deletions

View File

@ -970,13 +970,13 @@ void MathMacroTemplate::write(WriteStream & os) const
}
void MathMacroTemplate::write(WriteStream & os, bool /*overwriteRedefinition*/) const
void MathMacroTemplate::write(WriteStream & os, bool overwriteRedefinition) const
{
// newcommand or renewcommand
if (os.latex() && optionals_ > 1)
os << "\\newlyxcommand";
else {
if (redefinition_)
if (redefinition_ && !overwriteRedefinition)
os << "\\renewcommand";
else
os << "\\newcommand";