diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-11-25 08:03:23 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-11-25 11:43:14 +0000 |
| commit | fcc2431ab132519a0038b6702372d8460d7cd635 (patch) | |
| tree | 25933ed2fd3a8e5a850e2877b26755d613eaf4c7 /sources/shiboken6/ApiExtractor/parser/codemodel.cpp | |
| parent | 30620db0941a36298b194d7bfbf5213ba4eb8bba (diff) | |
Replace QVector by QList
Change AbstractMetaClass::templateArguments()
to return TypeEntries (const TypeEntry *) instead
non-const.
Remove redundant typedef OverloadData::MetaFunctionList.
Use existing typedefs in some places.
Add new typedefs for MetaObjectBuilder::EnumValues and
AbstractMetaFunctionCList.
Change-Id: Ia241b5fbe54d60ea57175fb1f6c844604e066a3d
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/parser/codemodel.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/parser/codemodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken6/ApiExtractor/parser/codemodel.cpp b/sources/shiboken6/ApiExtractor/parser/codemodel.cpp index 8e1cb9710..5d1835c47 100644 --- a/sources/shiboken6/ApiExtractor/parser/codemodel.cpp +++ b/sources/shiboken6/ApiExtractor/parser/codemodel.cpp @@ -51,7 +51,7 @@ private: }; template <class T> -static QSharedPointer<T> findModelItem(const QVector<QSharedPointer<T> > &list, const QString &name) +static QSharedPointer<T> findModelItem(const QList<QSharedPointer<T> > &list, const QString &name) { const auto it = std::find_if(list.cbegin(), list.cend(), ModelItemNamePredicate<T>(name)); return it != list.cend() ? *it : QSharedPointer<T>(); |
