]> git.lyx.org Git - lyx.git/blobdiff - src/support/lyxalgo.h
fix lyxalgo.h, dra pagebreak with text on line, change the math_deco_search a bit
[lyx.git] / src / support / lyxalgo.h
index 8e243bd506c0c57cf6db838dac64b7759abd4bfe..79799011060d5443ed897867fda58e5b3d7eeae0 100644 (file)
@@ -3,10 +3,6 @@
 #ifndef LYX_ALGO_H
 #define LYX_ALGO_H
 
-#include <algorithm>
-
-// using std::less;
-
 // Both these functions should ideally be placed into namespace lyx.
 // Also the using std::less should not be used.
 
@@ -19,7 +15,7 @@ bool sorted(For first, For last)
        if (first == last) return true;
        For tmp = first;
        while (++tmp != last) {
-               if (less(*tmp, *first++)) return false;
+               if (*tmp < *first++) return false;
        }
        return true;
 }