Better use of temporary

This commit is contained in:
Dmitry-Me 2017-08-28 18:15:15 +03:00
parent cf6d3ba398
commit 7d19d1ea2e
1 changed files with 2 additions and 2 deletions

View File

@ -1680,8 +1680,8 @@ namespace {
void SymbolDatabase::validateVariables() const
{
for (std::vector<const Variable *>::const_iterator iter = _variableList.begin(); iter!=_variableList.end(); ++iter) {
if (*iter) {
const Variable * const var = *iter;
const Variable * const var = *iter;
if (var) {
if (!var->scope()) {
const Function* function = getFunctionForArgumentvariable(var, functionScopes);
if (!var->isArgument() || (function && function->hasBody())) {