]> git.lyx.org Git - lyx.git/commitdiff
Initialize MathData members
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 12 Sep 2015 20:47:09 +0000 (22:47 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 12 Sep 2015 20:47:09 +0000 (22:47 +0200)
Coverity issues 23381 and 23436

src/mathed/MathData.cpp
src/mathed/MathData.h

index d591bfacc36e9d99f191aaaa89da5a698669249c..bcc9895e7203deb5abd80ea00c365a68863c218a 100644 (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)
 {}
 
 
index e2169416d60ab4281a486ce892917df9c19567d7..0419b5918168b3397c55c2d2f134f21e17bedd93 100644 (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);
        ///