diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-02-09 15:16:55 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2024-02-13 11:06:27 +0100 |
| commit | b806c5e75e89fbe0a3fc53eb82ca1b27524cca69 (patch) | |
| tree | 5620d6ecab68f86d86ce9a43e42d6a2c7eafebc4 /sources/shiboken6/ApiExtractor/doxygenparser.cpp | |
| parent | 5fc29707445195415d68de2b1f0d38df294da4c0 (diff) | |
shiboken6: Introduce more latin1 literals
Removes a few QLatin1StringView.
Task-number: PYSIDE-2537
Change-Id: I2270270c6011e43218034c9cd3a195f1f08c7ed3
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/doxygenparser.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/doxygenparser.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sources/shiboken6/ApiExtractor/doxygenparser.cpp b/sources/shiboken6/ApiExtractor/doxygenparser.cpp index 298d2759f..da790015f 100644 --- a/sources/shiboken6/ApiExtractor/doxygenparser.cpp +++ b/sources/shiboken6/ApiExtractor/doxygenparser.cpp @@ -54,13 +54,12 @@ void DoxygenParser::fillDocumentation(const AbstractMetaClassPtr &metaClass) doxyFileSuffix += metaClass->name(); doxyFileSuffix += u".xml"_s; - const char* prefixes[] = { "class", "struct", "namespace" }; + static constexpr QLatin1StringView prefixes[] = { "class"_L1, "struct"_L1, "namespace"_L1 }; bool isProperty = false; QString doxyFilePath; - for (const char *prefix : prefixes) { - doxyFilePath = documentationDataDirectory() + u'/' - + QLatin1StringView(prefix) + doxyFileSuffix; + for (const auto &prefix : prefixes) { + doxyFilePath = documentationDataDirectory() + u'/' + prefix + doxyFileSuffix; if (QFile::exists(doxyFilePath)) break; doxyFilePath.clear(); |
