]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_streamstr.C
fix build, thesaurus
[lyx.git] / src / mathed / math_streamstr.C
index 1675f0fe2481b629376c2c4331f52b4119fdabed..dae93991fcf4fa1e21580fa29f874a0c98977028 100644 (file)
@@ -3,14 +3,13 @@
 #include "math_streamstr.h"
 #include "math_mathmlstream.h"
 #include "support/LOstream.h"
-
-#include <algorithm>
+#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;
 }