Initialize MathData members

Coverity issues 23381 and 23436
This commit is contained in:
Jean-Marc Lasgouttes 2015-09-12 22:47:09 +02:00
parent cdeb425451
commit caa93de445
2 changed files with 4 additions and 2 deletions

View File

@ -48,7 +48,8 @@ namespace lyx {
MathData::MathData(Buffer * buf, const_iterator from, const_iterator to)
: base_type(from, to), buffer_(buf)
: base_type(from, to), minasc_(0), mindes_(0), slevel_(0),
sshift_(0), kerning_(0), buffer_(buf)
{}

View File

@ -66,7 +66,8 @@ public:
public:
///
MathData(Buffer * buf = 0) : buffer_(buf) {}
MathData(Buffer * buf = 0) : minasc_(0), mindes_(0), slevel_(0),
sshift_(0), kerning_(0), buffer_(buf) {}
///
MathData(Buffer * buf, const_iterator from, const_iterator to);
///