]> git.lyx.org Git - features.git/commitdiff
Do not mix several names for the same variable
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 20 Feb 2015 15:37:06 +0000 (16:37 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 20 Feb 2015 15:37:06 +0000 (16:37 +0100)
This confuses coverity, but is probably harmless.

Fxies coverity issue 23374

src/Encoding.cpp

index c4fb1d581ad851fd375b01a92c4116f209f637b0..0d1d11607720b7ac622c11a3fc490607c4d2c612 100644 (file)
@@ -166,11 +166,11 @@ void Encoding::init() const
                }
        }
        lyxerr.enable();
-       CharSet::iterator it = encodable_.find(start_encodable_);
-       while (it != encodable_.end()) {
+       CharSet::iterator it = encodable.find(start_encodable);
+       while (it != encodable.end()) {
                encodable.erase(it);
                ++start_encodable;
-               it = encodable_.find(start_encodable_);
+               it = encodable.find(start_encodable);
        }
        const_cast<Encoding *>(this)->complete_ = true;
 }