diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-11-10 15:28:55 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-11-11 17:14:14 +0000 |
commit | 154ef5831fcae56f9cbf53301b410a21bbdd6265 (patch) | |
tree | c8322efaf9dfe208173b769c9106bb968e659a09 /sources/shiboken6/generator/shiboken/shibokengenerator.h | |
parent | c527b0bac89679aa01fbc409077dd5640fc59c9b (diff) |
shiboken6: Port QPropertySpec to use QSharedDataPointer
Change the client code to store it by value. Use a
std::optional to replace the pointer.
Replace the pointer QPropertySpec* stored in AbstractMetaFunction
by a the index of the property in the enclosing class.
Change-Id: Iffca9e0a6f311534ba001dc2b34bbf5ff7c01813
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/generator/shiboken/shibokengenerator.h')
-rw-r--r-- | sources/shiboken6/generator/shiboken/shibokengenerator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken6/generator/shiboken/shibokengenerator.h b/sources/shiboken6/generator/shiboken/shibokengenerator.h index 91ddf8886..55d8c00db 100644 --- a/sources/shiboken6/generator/shiboken/shibokengenerator.h +++ b/sources/shiboken6/generator/shiboken/shibokengenerator.h @@ -345,9 +345,9 @@ protected: static QString cpythonSetattroFunctionName(const AbstractMetaClass *metaClass); static QString cpythonGetterFunctionName(const AbstractMetaField &metaField); static QString cpythonSetterFunctionName(const AbstractMetaField &metaField); - static QString cpythonGetterFunctionName(const QPropertySpec *property, + static QString cpythonGetterFunctionName(const QPropertySpec &property, const AbstractMetaClass *metaClass); - static QString cpythonSetterFunctionName(const QPropertySpec *property, + static QString cpythonSetterFunctionName(const QPropertySpec &property, const AbstractMetaClass *metaClass); QString cpythonWrapperCPtr(const AbstractMetaClass *metaClass, const QString &argName = QLatin1String("self")) const; |