Add const where const access is enough

This commit is contained in:
Dmitry-Me 2016-07-22 15:35:07 +03:00
parent 035a9a162a
commit 224e55780e
1 changed files with 1 additions and 1 deletions

View File

@ -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;