Fix self-check warning, condition is always true
This commit is contained in:
parent
0cb6603055
commit
d82df7cc55
|
@ -963,8 +963,7 @@ void SymbolDatabase::createSymbolDatabaseVariableSymbolTable()
|
||||||
// check for named parameters
|
// check for named parameters
|
||||||
if (arg.nameToken() && arg.declarationId()) {
|
if (arg.nameToken() && arg.declarationId()) {
|
||||||
const unsigned int declarationId = arg.declarationId();
|
const unsigned int declarationId = arg.declarationId();
|
||||||
if (declarationId > 0U)
|
mVariableList[declarationId] = &arg;
|
||||||
mVariableList[declarationId] = &arg;
|
|
||||||
// fix up parameters without type
|
// fix up parameters without type
|
||||||
if (!arg.type() && !arg.typeStartToken()->isStandardType()) {
|
if (!arg.type() && !arg.typeStartToken()->isStandardType()) {
|
||||||
const Type *type = findTypeInNested(arg.typeStartToken(), &scope);
|
const Type *type = findTypeInNested(arg.typeStartToken(), &scope);
|
||||||
|
|
Loading…
Reference in New Issue