* 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

@ -2076,7 +2076,7 @@ void Buffer::writeParentMacros(odocstream & os) const
MacroData const * data = MacroData const * data =
d->parent_buffer->getMacro(*it, *this, false); d->parent_buffer->getMacro(*it, *this, false);
if (data) if (data)
data->write(os, true); data->write(os, true);
} }
} }

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 // newcommand or renewcommand
if (os.latex() && optionals_ > 1) if (os.latex() && optionals_ > 1)
os << "\\newlyxcommand"; os << "\\newlyxcommand";
else { else {
if (redefinition_) if (redefinition_ && !overwriteRedefinition)
os << "\\renewcommand"; os << "\\renewcommand";
else else
os << "\\newcommand"; os << "\\newcommand";