* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
- * \author André Pönitz
+ * \author André Pönitz
*
* Full author contact details are available in file CREDITS.
*/
#include "InsetMath.h"
#include "MathSupport.h"
#include "MathParser.h"
-#include "support/debug.h"
+#include "support/debug.h"
+#include "support/FileName.h"
#include "support/filetools.h" // LibFileSearch
#include "support/docstream.h"
class Correction {
public:
///
+ /// \brief Correction
+ // it is fine not to initialize from2_
+ // coverity[UNINIT_CTOR]
Correction() {}
///
bool correct(MathAtom & at, char_type c) const;
}
-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,
}
+#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);
corr.write(os);
return os;
}
-
+#endif
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;
}
} // namespace anon
-bool math_autocorrect(MathAtom & at, char c)
+bool math_autocorrect(MathAtom & at, char_type c)
{
static bool initialized = false;