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/ApiExtractor/doxygenparser.cpp | |
| 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/ApiExtractor/doxygenparser.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/doxygenparser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/shiboken6/ApiExtractor/doxygenparser.cpp b/sources/shiboken6/ApiExtractor/doxygenparser.cpp index 723a5f022..92040dfc5 100644 --- a/sources/shiboken6/ApiExtractor/doxygenparser.cpp +++ b/sources/shiboken6/ApiExtractor/doxygenparser.cpp @@ -126,8 +126,9 @@ void DoxygenParser::fillDocumentation(AbstractMetaClass* metaClass) // properties if (func->isPropertyReader() || func->isPropertyWriter() || func->isPropertyResetter()) { + const auto prop = metaClass->propertySpecs().at(func->propertySpecIndex()); query += QLatin1String("[@kind=\"property\"]/memberdef/name[text()=\"") - + func->propertySpec()->name() + QLatin1String("\"]"); + + prop.name() + QLatin1String("\"]"); isProperty = true; } else { // normal methods QString kind = getSectionKindAttr(func); |
