]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.cpp
Simplify code by using initializer lists for vectors.
[lyx.git] / src / Buffer.cpp
index 0cc1d23f066749c0baad840f23d0bd1f8b790258..c8941e3043d77f43cbceba39aa92095e0f9b708d 100644 (file)
 #include "support/textutils.h"
 #include "support/types.h"
 
-#include "support/bind.h"
-
 #include <algorithm>
 #include <fstream>
 #include <iomanip>
@@ -3095,9 +3093,10 @@ void Buffer::changeLanguage(Language const * from, Language const * to)
        LASSERT(from, return);
        LASSERT(to, return);
 
-       for_each(par_iterator_begin(),
-                par_iterator_end(),
-                bind(&Paragraph::changeLanguage, _1, params(), from, to));
+       ParIterator it = par_iterator_begin();
+       ParIterator eit = par_iterator_end();
+       for (; it != eit; ++it)
+               it->changeLanguage(params(), from, to);
 }