]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_mathmlstream.C
fix typo that put too many include paths for most people
[lyx.git] / src / mathed / math_mathmlstream.C
index ba77e722844667c58acfd557935b7d063178c21e..9f9c1dc7d5d52b538f5a1c7e45618744de316e4f 100644 (file)
@@ -4,12 +4,13 @@
 #include "math_inset.h"
 #include "math_extern.h"
 #include "debug.h"
-#include "support/lstrings.h"
+#include "support/lyxalgo.h"
 
-#include <algorithm>
 
+using std::ostream;
 
-MathMLStream::MathMLStream(std::ostream & os)
+
+MathMLStream::MathMLStream(ostream & os)
        : os_(os), tab_(0), line_(0), lastchar_(0)
 {}
 
@@ -186,13 +187,13 @@ NormalStream & operator<<(NormalStream & ns, char c)
 //////////////////////////////////////////////////////////////////////
 
 
-WriteStream::WriteStream(std::ostream & os, bool fragile)
-       : os_(os), fragile_(fragile), firstitem_(false), line_(0)
+WriteStream::WriteStream(ostream & os, bool fragile, bool latex)
+       : os_(os), fragile_(fragile), latex_(latex), firstitem_(false), line_(0)
 {}
 
 
-WriteStream::WriteStream(std::ostream & os)
-       : os_(os), fragile_(false), firstitem_(false), line_(0)
+WriteStream::WriteStream(ostream & os)
+       : os_(os), fragile_(false), latex_(false), firstitem_(false), line_(0)
 {}
 
 
@@ -222,7 +223,7 @@ WriteStream & operator<<(WriteStream & ws, MathArray const & ar)
 WriteStream & operator<<(WriteStream & ws, char const * s)
 {
        ws.os() << s;
-       ws.addlines(int(countChar(s, '\n')));
+       ws.addlines(int(lyx::count(s, s+strlen(s), '\n')));
        return ws;
 }