]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_streamstr.C
oh well
[lyx.git] / src / mathed / math_streamstr.C
index 039931351361f988a934a2345e282cd9ff61186c..dae93991fcf4fa1e21580fa29f874a0c98977028 100644 (file)
@@ -2,14 +2,14 @@
 
 #include "math_streamstr.h"
 #include "math_mathmlstream.h"
-
-#include <algorithm>
+#include "support/LOstream.h"
+#include "support/lyxalgo.h"
 
 
 WriteStream & operator<<(WriteStream & ws, string const & s)
 {
        ws.os() << s;
-       ws.line() += std::count(s.begin(), s.end(), '\n');
+       ws.addlines(int(lyx::count(s.begin(), s.end(), '\n')));
        return ws;
 }