diff options
Diffstat (limited to 'sources/shiboken6/ApiExtractor/classdocumentation.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/classdocumentation.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sources/shiboken6/ApiExtractor/classdocumentation.cpp b/sources/shiboken6/ApiExtractor/classdocumentation.cpp index 637e4a422..2f92b2e3c 100644 --- a/sources/shiboken6/ApiExtractor/classdocumentation.cpp +++ b/sources/shiboken6/ApiExtractor/classdocumentation.cpp @@ -137,8 +137,11 @@ static void parseWebXmlElement(WebXmlCodeTag tag, const QXmlStreamAttributes &at } break; case WebXmlCodeTag::Parameter: - Q_ASSERT(!cd->functions.isEmpty()); - cd->functions.last().parameters.append(attributes.value(u"type"_s).toString()); + Q_ASSERT(!cd->functions.isEmpty()); { + FunctionDocumentation &last = cd->functions.last(); + last.parameters.append(attributes.value(u"type"_s).toString()); + last.parameterNames.append(attributes.value(u"name"_s).toString()); + } break; case WebXmlCodeTag::Property: { PropertyDocumentation pd; |
