X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FMathAutoCorrect.cpp;h=3e1405b3dc6b97f2647447e1993903aca4e7be7c;hb=4c724a6072013247ac178f0acec06825585c6c55;hp=fcc9f7705af445c692303fa50f579f59956790ce;hpb=78bc661ff8a1811051b8f58388f08f6abcc50dc2;p=lyx.git diff --git a/src/mathed/MathAutoCorrect.cpp b/src/mathed/MathAutoCorrect.cpp index fcc9f7705a..3e1405b3dc 100644 --- a/src/mathed/MathAutoCorrect.cpp +++ b/src/mathed/MathAutoCorrect.cpp @@ -94,6 +94,7 @@ bool Correction::correct(MathAtom & at, char_type c) const } +#if 0 idocstream & operator>>(idocstream & is, Correction & corr) { corr.read(is); @@ -106,7 +107,7 @@ odocstream & operator<<(odocstream & os, Correction & corr) corr.write(os); return os; } - +#endif @@ -149,7 +150,7 @@ void initAutoCorrect() string line; ifstream is(file.toFilesystemEncoding().c_str()); while (getline(is, line)) { - if (line.size() == 0 || line[0] == '#') { + if (line.empty() || line[0] == '#') { //LYXERR(Debug::MATHED, "ignoring line '" << line << '\''); continue; }