Better use of temporary
This commit is contained in:
parent
cf6d3ba398
commit
7d19d1ea2e
|
@ -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;
|
||||
if (var) {
|
||||
if (!var->scope()) {
|
||||
const Function* function = getFunctionForArgumentvariable(var, functionScopes);
|
||||
if (!var->isArgument() || (function && function->hasBody())) {
|
||||
|
|
Loading…
Reference in New Issue