]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.cpp
Change tracking cue: for instant preview
[lyx.git] / src / Cursor.cpp
index baf529bfc84208b2579b6373d1b0a3ba23d33de9..2894f9d71f2242cca56fc6a2b915642c819144d3 100644 (file)
@@ -51,8 +51,6 @@
 #include "mathed/MathData.h"
 #include "mathed/MathMacro.h"
 
-#include "support/bind.h"
-
 #include <sstream>
 #include <limits>
 #include <map>
@@ -1184,9 +1182,8 @@ void Cursor::plainInsert(MathAtom const & t)
 
 void Cursor::insert(docstring const & str)
 {
-       for_each(str.begin(), str.end(),
-                bind(static_cast<void(Cursor::*)(char_type)>
-                            (&Cursor::insert), this, _1));
+       for (char_type c : str)
+               insert(c);
 }