From 2762a30e48cae8ae52256fab59557e7e3f428d73 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 1 Oct 2013 09:16:19 +0300 Subject: [PATCH] Prefer prefix operator. --- lib/checkuninitvar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkuninitvar.cpp b/lib/checkuninitvar.cpp index f1b2e25cc..b7095459a 100644 --- a/lib/checkuninitvar.cpp +++ b/lib/checkuninitvar.cpp @@ -1106,7 +1106,7 @@ void CheckUninitVar::checkScope(const Scope* scope) if (!var.isArray()) { // is the variable declared in a inner union? bool innerunion = false; - for (std::list::const_iterator it2 = symbolDatabase->scopeList.begin(); it2 != symbolDatabase->scopeList.end(); it2++) { + for (std::list::const_iterator it2 = symbolDatabase->scopeList.begin(); it2 != symbolDatabase->scopeList.end(); ++it2) { const Scope &innerScope = *it2; if (innerScope.type == Scope::eUnion && innerScope.nestedIn == scope2) { if (var.typeStartToken()->linenr() >= innerScope.classStart->linenr() &&