X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FMathAutoCorrect.cpp;h=fc4ad440d20919fd5576c3b6820a57710dd2d079;hb=ebe6612e2661f49dcfae6103f056c27afd47751f;hp=e49959a16d3aacf4c33454a9af25c6f34585d4c6;hpb=43f6b1672b5ef442b4e9b7e4f7ea76dc14ac4fc8;p=lyx.git diff --git a/src/mathed/MathAutoCorrect.cpp b/src/mathed/MathAutoCorrect.cpp index e49959a16d..fc4ad440d2 100644 --- a/src/mathed/MathAutoCorrect.cpp +++ b/src/mathed/MathAutoCorrect.cpp @@ -35,7 +35,8 @@ namespace { class Correction { public: /// - Correction() {} + /// \brief Correction + Correction() : from2_(0) {} /// bool correct(MathAtom & at, char_type c) const; /// @@ -72,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, @@ -94,6 +88,14 @@ 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); @@ -106,7 +108,7 @@ odocstream & operator<<(odocstream & os, Correction & corr) corr.write(os); return os; } - +#endif @@ -167,7 +169,7 @@ void initAutoCorrect() } -} // namespace anon +} // namespace bool math_autocorrect(MathAtom & at, char_type c)