diff options
author | Topi Reinio <topi.reinio@qt.io> | 2021-01-08 12:20:48 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-01-08 12:13:41 +0000 |
commit | 88c6d2d5841f7d573e98e97148e67374fc11a3f0 (patch) | |
tree | 37424705a5e19efecb854a9994f807d61203678e | |
parent | f1158156a06bc03ba16c01c353f0f57a66d0fede (diff) |
qdoc: Ignore empty example meta tags
Incorrectly formatted parameter for the \meta tag command may result
in empty tags, and cause an assert later on.
Change-Id: I504e038f119833615976ba44549934ccc70aea31
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
(cherry picked from commit c8500ae622f47dee84cb1ee2dbf167921de3e5c1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/qdoc/manifestwriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qdoc/manifestwriter.cpp b/src/qdoc/manifestwriter.cpp index 1bca142b2..7c312e550 100644 --- a/src/qdoc/manifestwriter.cpp +++ b/src/qdoc/manifestwriter.cpp @@ -373,7 +373,7 @@ void ManifestWriter::includeTagsAddedWithMetaCommand(const ExampleNode *example) const QStringMultiMap *metaTagMap = example->doc().metaTagMap(); if (metaTagMap) { for (const auto &tag : metaTagMap->values("tag")) { - const auto &tagList = tag.toLower().split(QLatin1Char(',')); + const auto &tagList = tag.toLower().split(QLatin1Char(','), Qt::SkipEmptyParts); m_tags += QSet<QString>(tagList.constBegin(), tagList.constEnd()); } } |