Skip to content

Commit d82df7c

Browse files
committed
Fix self-check warning, condition is always true
1 parent 0cb6603 commit d82df7c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/symboldatabase.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -963,8 +963,7 @@ void SymbolDatabase::createSymbolDatabaseVariableSymbolTable()
963963
// check for named parameters
964964
if (arg.nameToken() && arg.declarationId()) {
965965
const unsigned int declarationId = arg.declarationId();
966-
if (declarationId > 0U)
967-
mVariableList[declarationId] = &arg;
966+
mVariableList[declarationId] = &arg;
968967
// fix up parameters without type
969968
if (!arg.type() && !arg.typeStartToken()->isStandardType()) {
970969
const Type *type = findTypeInNested(arg.typeStartToken(), &scope);

0 commit comments

Comments
 (0)