]> git.lyx.org Git - lyx.git/commitdiff
We were already using it here. Why wasn't I warned?
authorRichard Heck <rgheck@comcast.net>
Thu, 26 May 2011 13:36:05 +0000 (13:36 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 26 May 2011 13:36:05 +0000 (13:36 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38838 a592a061-630c-0410-9148-cb99ea01b6c8

src/Buffer.cpp

index c6ce92aa97857552ba0dd3e2f1d395b6cfd9edaf..355b865dcde4679bd7c6347fb0c2fec458844d0f 100644 (file)
@@ -457,9 +457,9 @@ void Buffer::clone(BufferMap & bufmap) const
                Buffer * child = const_cast<Buffer *>(it->first);
 
                child->clone(bufmap);
-               BufferMap::iterator it = bufmap.find(child);
-               LASSERT(it != bufmap.end(), continue);
-               Buffer * child_clone = it->second;
+               BufferMap::iterator const bit = bufmap.find(child);
+               LASSERT(bit != bufmap.end(), continue);
+               Buffer * child_clone = bit->second;
 
                Inset * inset = dit.nextInset();
                LASSERT(inset && inset->lyxCode() == INCLUDE_CODE, continue);