From 836f385520c5c1233bc90dd67d64bb37ee109167 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 1 Dec 2022 13:38:27 +0100 Subject: shiboken6: Make AbstractMetaClass::fixFunctions/addFunction*() static Preparing for the introduction of smart pointers for AbstractMetaClass. Change-Id: I74b1a4fc52319099dae39040179ffb197bac27a7 Reviewed-by: Cristian Maureira-Fredes --- sources/shiboken6/ApiExtractor/abstractmetalang.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sources/shiboken6/ApiExtractor/abstractmetalang.h') diff --git a/sources/shiboken6/ApiExtractor/abstractmetalang.h b/sources/shiboken6/ApiExtractor/abstractmetalang.h index c28b39a71..ce0127580 100644 --- a/sources/shiboken6/ApiExtractor/abstractmetalang.h +++ b/sources/shiboken6/ApiExtractor/abstractmetalang.h @@ -67,7 +67,7 @@ public: const AbstractMetaFunctionCList &functions() const; void setFunctions(const AbstractMetaFunctionCList &functions); - void addFunction(const AbstractMetaFunctionCPtr &function); + static void addFunction(AbstractMetaClass *klass, const AbstractMetaFunctionCPtr &function); bool hasFunction(const QString &str) const; AbstractMetaFunctionCPtr findFunction(QStringView functionName) const; AbstractMetaFunctionCList findFunctions(QStringView functionName) const; @@ -81,8 +81,8 @@ public: bool hasCopyConstructor() const; bool hasPrivateCopyConstructor() const; - void addDefaultConstructor(); - void addDefaultCopyConstructor(); + static void addDefaultConstructor(AbstractMetaClass *klass); + static void addDefaultCopyConstructor(AbstractMetaClass *klass); bool hasNonPrivateConstructor() const; void setHasNonPrivateConstructor(bool value); @@ -113,7 +113,7 @@ public: bool isImplicitlyCopyConstructible() const; bool canAddDefaultCopyConstructor() const; - void addSynthesizedComparisonOperators(); + static void addSynthesizedComparisonOperators(AbstractMetaClass *c); bool generateExceptionHandling() const; @@ -330,7 +330,7 @@ public: void setSourceLocation(const SourceLocation &sourceLocation); // For AbstractMetaBuilder - void fixFunctions(); + static void fixFunctions(AbstractMetaClass *klass); bool needsInheritanceSetup() const; void setInheritanceDone(bool b); bool inheritanceDone() const; -- cgit v1.2.3