Fixed cppcheck warnings
This commit is contained in:
parent
f8a4fb91fe
commit
dbfe7e0b6b
|
@ -1581,8 +1581,6 @@ void CheckStl::readingEmptyStlContainer()
|
||||||
|
|
||||||
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next()) {
|
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next()) {
|
||||||
bool stl1_exist = false;
|
bool stl1_exist = false;
|
||||||
bool stl2_exist = false;
|
|
||||||
bool stl2_isEmpty = true;
|
|
||||||
|
|
||||||
if (tok->variable() && tok->variable()->isStlType(STL_CONTAINERS)) {
|
if (tok->variable() && tok->variable()->isStlType(STL_CONTAINERS)) {
|
||||||
if (empty.find(tok->varId()) != empty.end())
|
if (empty.find(tok->varId()) != empty.end())
|
||||||
|
@ -1603,6 +1601,9 @@ void CheckStl::readingEmptyStlContainer()
|
||||||
else
|
else
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
bool stl2_exist = false;
|
||||||
|
bool stl2_isEmpty = true;
|
||||||
|
|
||||||
// rhs variable
|
// rhs variable
|
||||||
if (tok2->variable() && tok2->variable()->isStlType(STL_CONTAINERS)) {
|
if (tok2->variable() && tok2->variable()->isStlType(STL_CONTAINERS)) {
|
||||||
if (empty.find(tok2->varId()) != empty.end()) {
|
if (empty.find(tok2->varId()) != empty.end()) {
|
||||||
|
|
Loading…
Reference in New Issue