X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmathed%2FMathAutoCorrect.cpp;h=fc4ad440d20919fd5576c3b6820a57710dd2d079;hb=ebe6612e2661f49dcfae6103f056c27afd47751f;hp=17431114b8c983e622e6890d3147b1f13d379dae;hpb=4065f596ada672c58787a0f9faa2278621545ab9;p=lyx.git diff --git a/src/mathed/MathAutoCorrect.cpp b/src/mathed/MathAutoCorrect.cpp index 17431114b8..fc4ad440d2 100644 --- a/src/mathed/MathAutoCorrect.cpp +++ b/src/mathed/MathAutoCorrect.cpp @@ -36,9 +36,7 @@ class Correction { public: /// /// \brief Correction - // it is fine not to initialize from2_ - // coverity[UNINIT_CTOR] - Correction() {} + Correction() : from2_(0) {} /// bool correct(MathAtom & at, char_type c) const; /// @@ -171,7 +169,7 @@ void initAutoCorrect() } -} // namespace anon +} // namespace bool math_autocorrect(MathAtom & at, char_type c)