diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-11-21 18:57:52 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-11-22 10:18:39 +0100 |
| commit | 03c8505f7a080b654654bbf3a05c7d3977d6762d (patch) | |
| tree | b231459ef5efa79047b8169ade192b526eb1ac8c /sources/shiboken6/ApiExtractor/classdocumentation.cpp | |
| parent | ed0f55c1d79636040843ae5c5e0d9308e35da65a (diff) | |
Purge remaining uses of old Qt string literals
Amends a3e882b06eda8f9a63cf3834a99640034775269b.
Pick-to: 6.4
Task-number: QTBUG-98434
Change-Id: I23ad60d6e4201aa2d8dbf3fa8892d3df3c56c5fc
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/classdocumentation.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/classdocumentation.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sources/shiboken6/ApiExtractor/classdocumentation.cpp b/sources/shiboken6/ApiExtractor/classdocumentation.cpp index 4636072ea..ae0750210 100644 --- a/sources/shiboken6/ApiExtractor/classdocumentation.cpp +++ b/sources/shiboken6/ApiExtractor/classdocumentation.cpp @@ -13,6 +13,8 @@ #include <algorithm> +using namespace Qt::StringLiterals; + // Sort functions by name and argument count static bool functionDocumentationLessThan(const FunctionDocumentation &f1, const FunctionDocumentation &f2) @@ -109,30 +111,30 @@ static void parseWebXmlElement(WebXmlTag tag, const QXmlStreamAttributes &attrib { switch (tag) { case WebXmlTag::Class: - cd->name = attributes.value(u"name"_qs).toString(); + cd->name = attributes.value(u"name"_s).toString(); break; case WebXmlTag::Enum: { EnumDocumentation ed; - ed.name = attributes.value(u"name"_qs).toString(); + ed.name = attributes.value(u"name"_s).toString(); cd->enums.append(ed); } break; case WebXmlTag::Function: { FunctionDocumentation fd; - fd.name = attributes.value(u"name"_qs).toString(); - fd.signature = attributes.value(u"signature"_qs).toString(); - fd.returnType = attributes.value(u"type"_qs).toString(); - fd.constant = attributes.value(u"const"_qs) == u"true"; + fd.name = attributes.value(u"name"_s).toString(); + fd.signature = attributes.value(u"signature"_s).toString(); + fd.returnType = attributes.value(u"type"_s).toString(); + fd.constant = attributes.value(u"const"_s) == u"true"; cd->functions.append(fd); } break; case WebXmlTag::Parameter: Q_ASSERT(!cd->functions.isEmpty()); - cd->functions.last().parameters.append(attributes.value(u"type"_qs).toString()); + cd->functions.last().parameters.append(attributes.value(u"type"_s).toString()); break; case WebXmlTag::Property: { PropertyDocumentation pd; - pd.name = attributes.value(u"name"_qs).toString(); + pd.name = attributes.value(u"name"_s).toString(); cd->properties.append(pd); } break; |
