]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_mathmlstream.C
whichFont down to 5.3%
[lyx.git] / src / mathed / math_mathmlstream.C
index 8aed771f0bdc8582c436b38360d60fdae2f98a81..a4bbcfce6cd9ef5d8c5dd85b67744f559be5c890 100644 (file)
@@ -4,8 +4,7 @@
 #include "math_inset.h"
 #include "math_extern.h"
 #include "debug.h"
-
-#include <algorithm>
+#include "support/lyxalgo.h"
 
 
 MathMLStream::MathMLStream(std::ostream & os)
@@ -221,7 +220,7 @@ WriteStream & operator<<(WriteStream & ws, MathArray const & ar)
 WriteStream & operator<<(WriteStream & ws, char const * s)
 {
        ws.os() << s;
-       ws.addlines(std::count(s, s + strlen(s), '\n'));
+       ws.addlines(int(lyx::count(s, s+strlen(s), '\n')));
        return ws;
 }