[LyX/master] Use range
Richard Kimberly Heck
rikiheck at lyx.org
Fri Feb 28 05:55:07 UTC 2020
commit a9e663546b61becd1b3ae7ae660d551069659965
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date: Fri Feb 28 01:13:56 2020 -0500
Use range
---
src/BufferEncodings.cpp | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/BufferEncodings.cpp b/src/BufferEncodings.cpp
index 0604dfb..d4f08fc 100644
--- a/src/BufferEncodings.cpp
+++ b/src/BufferEncodings.cpp
@@ -45,11 +45,8 @@ void BufferEncodings::initUnicodeMath(Buffer const & buffer, bool for_master)
return;
// Check children
- ListOfBuffers blist = buffer.getDescendants();
- 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);
}
More information about the lyx-cvs
mailing list