aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-09-22 08:29:05 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-10-04 10:03:54 +0200
commit5f3aa0bc1687c05a96772f620a97ac4135cf1b68 (patch)
treec609aaa71469b8bcef1a7040a911a3d5e65c0cec
parent6178eb2a14ab8b9061473fc4d09e2b537fcd8061 (diff)
shiboken6: Make some ShibokenGenerator methods static
Complements 9e19ebd9c90999368dbf2db1a5e7b44cc2ddf7fa. Change-Id: I19ce8f744ea38f7913e099f02e496fda855d3640 Reviewed-by: Christian Tismer <tismer@stackless.com>
-rw-r--r--sources/shiboken6/generator/shiboken/shibokengenerator.cpp5
-rw-r--r--sources/shiboken6/generator/shiboken/shibokengenerator.h4
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,