Prefer prefix operator.

This commit is contained in:
XhmikosR 2013-10-01 09:16:19 +03:00
parent a9bae18502
commit 2762a30e48
1 changed files with 1 additions and 1 deletions

View File

@ -1106,7 +1106,7 @@ void CheckUninitVar::checkScope(const Scope* scope)
if (!var.isArray()) { if (!var.isArray()) {
// is the variable declared in a inner union? // is the variable declared in a inner union?
bool innerunion = false; bool innerunion = false;
for (std::list<Scope>::const_iterator it2 = symbolDatabase->scopeList.begin(); it2 != symbolDatabase->scopeList.end(); it2++) { for (std::list<Scope>::const_iterator it2 = symbolDatabase->scopeList.begin(); it2 != symbolDatabase->scopeList.end(); ++it2) {
const Scope &innerScope = *it2; const Scope &innerScope = *it2;
if (innerScope.type == Scope::eUnion && innerScope.nestedIn == scope2) { if (innerScope.type == Scope::eUnion && innerScope.nestedIn == scope2) {
if (var.typeStartToken()->linenr() >= innerScope.classStart->linenr() && if (var.typeStartToken()->linenr() >= innerScope.classStart->linenr() &&