]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathAutoCorrect.cpp
Make sure inset buffer is correctly set in math grid
[lyx.git] / src / mathed / MathAutoCorrect.cpp
index 17431114b8c983e622e6890d3147b1f13d379dae..fc4ad440d20919fd5576c3b6820a57710dd2d079 100644 (file)
@@ -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)