From c779454186593a31e0eb8f50a2baf184a0885c12 Mon Sep 17 00:00:00 2001 From: Uwe Siems Date: Fri, 28 Jun 2024 13:14:27 +0200 Subject: [PATCH] Check for duplicates at one more place (should fix compare methods generated twice for Qt 5.12/5.15) --- generator/abstractmetabuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/abstractmetabuilder.cpp b/generator/abstractmetabuilder.cpp index 62a5ed553..2515f7310 100644 --- a/generator/abstractmetabuilder.cpp +++ b/generator/abstractmetabuilder.cpp @@ -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; }