From caa93de4455da6ca16b2d4e89f7e61dfe346c88b Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sat, 12 Sep 2015 22:47:09 +0200 Subject: [PATCH] Initialize MathData members Coverity issues 23381 and 23436 --- src/mathed/MathData.cpp | 3 ++- src/mathed/MathData.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mathed/MathData.cpp b/src/mathed/MathData.cpp index d591bfacc3..bcc9895e72 100644 --- a/src/mathed/MathData.cpp +++ b/src/mathed/MathData.cpp @@ -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) {} diff --git a/src/mathed/MathData.h b/src/mathed/MathData.h index e2169416d6..0419b59181 100644 --- a/src/mathed/MathData.h +++ b/src/mathed/MathData.h @@ -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); /// -- 2.39.5