From 7f30108f1de9990ea1283a6108af0387f42e79be Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Wed, 3 Aug 2016 18:15:08 +0300 Subject: [PATCH] Descriptive variable name --- lib/symboldatabase.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index d8369171c..f91339615 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -1088,19 +1088,19 @@ SymbolDatabase::SymbolDatabase(const Tokenizer *tokenizer, const Settings *setti if (start != end && start->next() != end) { for (Token* tok = start->next(); tok != end; tok = tok->next()) { if (tok->str() == "{") { - bool break2 = false; + bool isEndOfScope = false; for (std::list::const_iterator innerScope = it->nestedList.begin(); innerScope != it->nestedList.end(); ++innerScope) { if (tok == (*innerScope)->classStart) { // Is begin of inner scope tok = tok->link(); if (!tok || tok->next() == end || !tok->next()) { - break2 = true; + isEndOfScope = true; break; } tok = tok->next(); break; } } - if (break2) + if (isEndOfScope) break; } tok->scope(&*it);