mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-20 23:07:43 +00:00
* 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:
parent
afa6389644
commit
e0538043e4
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user