Initialize all MathMacroTemplate members in constructors

Found by coverity.
This commit is contained in:
Jean-Marc Lasgouttes 2016-06-09 16:19:31 +02:00
parent 8cd8080322
commit af6a164e3c

View File

@ -396,7 +396,8 @@ void InsetNameWrapper::draw(PainterInfo & pi, int x, int y) const
MathMacroTemplate::MathMacroTemplate(Buffer * buf) MathMacroTemplate::MathMacroTemplate(Buffer * buf)
: InsetMathNest(buf, 3), numargs_(0), argsInLook_(0), optionals_(0), : InsetMathNest(buf, 3), numargs_(0), argsInLook_(0), optionals_(0),
type_(MacroTypeNewcommand), lookOutdated_(true) type_(MacroTypeNewcommand), redefinition_(false), lookOutdated_(true),
premetrics_(false), labelBoxAscent_(0), labelBoxDescent_(0)
{ {
initMath(); initMath();
} }
@ -407,7 +408,8 @@ MathMacroTemplate::MathMacroTemplate(Buffer * buf, docstring const & name, int n
MathData const & def, MathData const & display) MathData const & def, MathData const & display)
: InsetMathNest(buf, optionals + 3), numargs_(numargs), argsInLook_(numargs), : InsetMathNest(buf, optionals + 3), numargs_(numargs), argsInLook_(numargs),
optionals_(optionals), optionalValues_(optionalValues), optionals_(optionals), optionalValues_(optionalValues),
type_(type), lookOutdated_(true) type_(type), redefinition_(false), lookOutdated_(true),
premetrics_(false), labelBoxAscent_(0), labelBoxDescent_(0)
{ {
initMath(); initMath();