From 5f3aa0bc1687c05a96772f620a97ac4135cf1b68 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 22 Sep 2021 08:29:05 +0200 Subject: shiboken6: Make some ShibokenGenerator methods static Complements 9e19ebd9c90999368dbf2db1a5e7b44cc2ddf7fa. Change-Id: I19ce8f744ea38f7913e099f02e496fda855d3640 Reviewed-by: Christian Tismer --- sources/shiboken6/generator/shiboken/shibokengenerator.cpp | 5 +++-- sources/shiboken6/generator/shiboken/shibokengenerator.h | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/sources/shiboken6/generator/shiboken/shibokengenerator.cpp b/sources/shiboken6/generator/shiboken/shibokengenerator.cpp index 8bc5dbf56..bd0729caa 100644 --- a/sources/shiboken6/generator/shiboken/shibokengenerator.cpp +++ b/sources/shiboken6/generator/shiboken/shibokengenerator.cpp @@ -1114,7 +1114,8 @@ QString ShibokenGenerator::cpythonIsConvertibleFunction(const TypeEntry *type) return QString::fromLatin1("Shiboken::Conversions::isPythonToCppConvertible(%1, ") .arg(converterObject(type)); } -QString ShibokenGenerator::cpythonIsConvertibleFunction(AbstractMetaType metaType) const + +QString ShibokenGenerator::cpythonIsConvertibleFunction(AbstractMetaType metaType) { const auto *typeEntry = metaType.typeEntry(); if (typeEntry->isCustom()) { @@ -1154,7 +1155,7 @@ QString ShibokenGenerator::cpythonIsConvertibleFunction(AbstractMetaType metaTyp return result; } -QString ShibokenGenerator::cpythonIsConvertibleFunction(const AbstractMetaArgument &metaArg) const +QString ShibokenGenerator::cpythonIsConvertibleFunction(const AbstractMetaArgument &metaArg) { return cpythonIsConvertibleFunction(metaArg.type()); } diff --git a/sources/shiboken6/generator/shiboken/shibokengenerator.h b/sources/shiboken6/generator/shiboken/shibokengenerator.h index ace653910..80a01e34f 100644 --- a/sources/shiboken6/generator/shiboken/shibokengenerator.h +++ b/sources/shiboken6/generator/shiboken/shibokengenerator.h @@ -236,8 +236,8 @@ protected: QString cpythonCheckFunction(const TypeEntry *type) const; QString cpythonCheckFunction(AbstractMetaType metaType) const; static QString cpythonIsConvertibleFunction(const TypeEntry *type); - QString cpythonIsConvertibleFunction(AbstractMetaType metaType) const; - QString cpythonIsConvertibleFunction(const AbstractMetaArgument &metaArg) const; + static QString cpythonIsConvertibleFunction(AbstractMetaType metaType); + static QString cpythonIsConvertibleFunction(const AbstractMetaArgument &metaArg); static QString cpythonToCppConversionFunction(const AbstractMetaClass *metaClass) ; static QString cpythonToCppConversionFunction(const AbstractMetaType &type, -- cgit v1.2.3