]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathAutoCorrect.cpp
de.po
[lyx.git] / src / mathed / MathAutoCorrect.cpp
index 2af6c4b77da3bae5ad7a987301ff0d0bf41213e2..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;
        ///
@@ -75,13 +73,6 @@ bool Correction::read(idocstream & is)
 }
 
 
-void Correction::write(odocstream & os) const
-{
-       os << "from: '" << from1_ << "' and '" << from2_
-          << "' to '" << to_ << '\'' << endl;
-}
-
-
 bool Correction::correct(MathAtom & at, char_type c) const
 {
        //LYXERR(Debug::MATHED,
@@ -98,6 +89,13 @@ bool Correction::correct(MathAtom & at, char_type c) const
 
 
 #if 0
+void Correction::write(odocstream & os) const
+{
+       os << "from: '" << from1_ << "' and '" << from2_
+          << "' to '" << to_ << '\'' << endl;
+}
+
+
 idocstream & operator>>(idocstream & is, Correction & corr)
 {
        corr.read(is);
@@ -171,7 +169,7 @@ void initAutoCorrect()
 }
 
 
-} // namespace anon
+} // namespace
 
 
 bool math_autocorrect(MathAtom & at, char_type c)