diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-09 09:56:15 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2020-06-09 12:51:39 +0200 |
commit | 0733f1f503f04b4972c8382cf9d42f869d253378 (patch) | |
tree | f59cadeaf3bcbd445c0fa46ef59261dce5cebe2c /src/qdoc/qmlcodemarker.cpp | |
parent | 0a17d42e674bd3b8470d1b2286eab569771a069f (diff) | |
download | qttools-0733f1f503f04b4972c8382cf9d42f869d253378.tar.gz |
QDoc: Use QList instead of QVector
Task-number: QTBUG-84469
Change-Id: I88b99ba7f5648d9da7878b7f7723f48cd86be2ac
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'src/qdoc/qmlcodemarker.cpp')
-rw-r--r-- | src/qdoc/qmlcodemarker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qdoc/qmlcodemarker.cpp b/src/qdoc/qmlcodemarker.cpp index e61fb3eb6..fa415ccb4 100644 --- a/src/qdoc/qmlcodemarker.cpp +++ b/src/qdoc/qmlcodemarker.cpp @@ -164,7 +164,7 @@ QString QmlCodeMarker::addMarkUp(const QString &code, const Node * /* relative * QQmlJS::Lexer lexer(&engine); QString newCode = code; - QVector<QQmlJS::SourceLocation> pragmas = extractPragmas(newCode); + QList<QQmlJS::SourceLocation> pragmas = extractPragmas(newCode); lexer.setCode(newCode, 1); QQmlJS::Parser parser(&engine); @@ -218,11 +218,11 @@ static void replaceWithSpace(QString &str, int idx, int n) Searches for ".pragma <value>" or ".import <stuff>" declarations in \a script. Currently supported pragmas are: library */ -QVector<QQmlJS::SourceLocation> QmlCodeMarker::extractPragmas(QString &script) +QList<QQmlJS::SourceLocation> QmlCodeMarker::extractPragmas(QString &script) { const QString pragma(QLatin1String("pragma")); const QString library(QLatin1String("library")); - QVector<QQmlJS::SourceLocation> removed; + QList<QQmlJS::SourceLocation> removed; QQmlJS::Lexer l(nullptr); l.setCode(script, 0); |