Skip to content

Commit c8e0baf

Browse files
Update checkclass.cpp
1 parent 990f673 commit c8e0baf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/checkclass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ void CheckClass::constructors()
371371
continue;
372372

373373
const Variable& var = *usage.var;
374-
if (diagVars.count(&var))
374+
if (diagVars.count(&var) == 0)
375375
uninitVarError(scope->bodyStart, false, FunctionType::eConstructor, var.scope()->className, var.name(), false, false);
376376
}
377377
}

0 commit comments

Comments
 (0)