]> git.lyx.org Git - features.git/commitdiff
I prefer this style....
authorRichard Heck <rgheck@comcast.net>
Wed, 29 Sep 2010 12:19:57 +0000 (12:19 +0000)
committerRichard Heck <rgheck@comcast.net>
Wed, 29 Sep 2010 12:19:57 +0000 (12:19 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35533 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index d03b29f5a530c928b14e75afd779b1393db343c4..8db725e8530c68e8074aed501b584f69f8d8152b 100644 (file)
@@ -2329,9 +2329,9 @@ bool GuiView::closeBuffer(Buffer & buf)
        // buffer, we can close or release the child buffers here too.
        if (!closing_) {
                ListOfBuffers clist = buf.getChildren(false);
+               ListOfBuffers::const_iterator it = clist.begin();
                ListOfBuffers::const_iterator const bend = clist.end();
-               for (ListOfBuffers::const_iterator it = clist.begin();
-                        it != bend; ++it) {
+               for (; it != bend; ++it) {
                        // If a child is dirty, do not close
                        // without user intervention
                        //FIXME: should we look in other tabworkareas?