Add const where const access is enough
This commit is contained in:
parent
035a9a162a
commit
224e55780e
|
@ -282,7 +282,7 @@ void CheckNullPointer::nullPointerLinkedList()
|
|||
|
||||
// Check usage of dereferenced variable in the loop..
|
||||
for (std::list<Scope*>::const_iterator j = i->nestedList.begin(); j != i->nestedList.end(); ++j) {
|
||||
Scope* scope = *j;
|
||||
const Scope* const scope = *j;
|
||||
if (scope->type != Scope::eWhile)
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in New Issue