]> git.lyx.org Git - lyx.git/blobdiff - src/BufferEncodings.cpp
Fix #10328.
[lyx.git] / src / BufferEncodings.cpp
index 82fd3dc7159906a1e98bedbbd39b15359d9b682f..d4f08fca34dad10387d32a118aacf38502f5319f 100644 (file)
@@ -45,11 +45,8 @@ void BufferEncodings::initUnicodeMath(Buffer const & buffer, bool for_master)
                return;
 
        // Check children
-       ListOfBuffers blist = buffer.getDescendents();
-       ListOfBuffers::const_iterator bit = blist.begin();
-       ListOfBuffers::const_iterator const bend = blist.end();
-       for (; bit != bend; ++bit)
-               initUnicodeMath(**bit, false);
+       for (Buffer * buf : buffer.getDescendants())
+               initUnicodeMath(*buf, false);
 }