Skip to content

Commit

Permalink
Check for duplicates at one more place
Browse files Browse the repository at this point in the history
(should fix compare methods generated twice for Qt 5.12/5.15)
  • Loading branch information
usiems committed Jun 28, 2024
1 parent 1b6d329 commit c779454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/abstractmetabuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ void AbstractMetaBuilder::traverseCompareOperator(FunctionModelItem item) {
meta_function->setOriginalAttributes(meta_function->attributes());
setupFunctionDefaults(meta_function, comparer_class);

comparer_class->addFunction(meta_function);
comparer_class->addFunction(meta_function, /*check_duplicates=*/true);
} else if (meta_function != 0) {
delete meta_function;
}
Expand Down

0 comments on commit c779454

Please sign in to comment.