From: Jean-Marc Lasgouttes Date: Fri, 20 Feb 2015 15:37:06 +0000 (+0100) Subject: Do not mix several names for the same variable X-Git-Tag: 2.2.0alpha1~1277 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=fd7aa2d62d88e4da746f7f91378d19fc9d11e62c;p=features.git Do not mix several names for the same variable This confuses coverity, but is probably harmless. Fxies coverity issue 23374 --- diff --git a/src/Encoding.cpp b/src/Encoding.cpp index c4fb1d581a..0d1d116077 100644 --- a/src/Encoding.cpp +++ b/src/Encoding.cpp @@ -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(this)->complete_ = true; }