From 30cdcd7b8e7f70bf6b64450ca622dd4494e3a0ea Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 27 Nov 2020 17:11:47 +0100 Subject: shiboken6: Store AbstractMetaFunction using a QSharedPointer Store the list functions (global / class member) as a QList instead of a raw pointer list. This makes passing around function lists easier and solves the memory leaks caused by mixing cloned and unmodified functions while collecting the overload lists in the generators. - Change the function signatures accordingly - Add a qSharedPointerConstCast() for non-const access. - Restructure the traversing of added functions in the AbstractMetaBuilder - Remove some unused typedefs and functions unearthed by the change Change-Id: I08a6c5243750e3eb3813bc3f7172899ad2b13e22 Reviewed-by: Christian Tismer --- sources/shiboken6/ApiExtractor/messages.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sources/shiboken6/ApiExtractor/messages.cpp') diff --git a/sources/shiboken6/ApiExtractor/messages.cpp b/sources/shiboken6/ApiExtractor/messages.cpp index e3ea87f76..5bdd58ae2 100644 --- a/sources/shiboken6/ApiExtractor/messages.cpp +++ b/sources/shiboken6/ApiExtractor/messages.cpp @@ -52,7 +52,7 @@ QString msgNoFunctionForModification(const AbstractMetaClass *klass, const QString &signature, const QString &originalSignature, const QStringList &possibleSignatures, - const AbstractMetaFunctionList &allFunctions) + const AbstractMetaFunctionCList &allFunctions) { QString result; QTextStream str(&result); -- cgit v1.2.3