aboutsummaryrefslogtreecommitdiffstats
path: root/ApiExtractor/abstractmetalang.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2017-03-29 11:16:20 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2017-04-06 08:36:03 +0000
commit69d28aa054cb43cbc0f68b2cc18fbedcbca1e0d5 (patch)
treeee214b0659548204d92d101e31f4fa5112b39737 /ApiExtractor/abstractmetalang.cpp
parent6a4865f5bba1d15bc3e91f720486c9e23cafc8c5 (diff)
AbstractMetaLang/Typesystem: Replace QList by QVector
QList will be deprecated in Qt. Change-Id: I82c997366736c1f976b142cb142da39976736f49 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'ApiExtractor/abstractmetalang.cpp')
-rw-r--r--ApiExtractor/abstractmetalang.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/ApiExtractor/abstractmetalang.cpp b/ApiExtractor/abstractmetalang.cpp
index 0a7dc0f..a309088 100644
--- a/ApiExtractor/abstractmetalang.cpp
+++ b/ApiExtractor/abstractmetalang.cpp
@@ -280,7 +280,7 @@ void AbstractMetaType::decideUsagePattern()
bool AbstractMetaType::hasTemplateChildren() const
{
QStack<AbstractMetaType *> children;
- children << m_children.toVector();
+ children << m_children;
// Recursively iterate over the children / descendants of the type, to check if any of them
// corresponds to a template argument type.
@@ -288,7 +288,7 @@ bool AbstractMetaType::hasTemplateChildren() const
AbstractMetaType *child = children.pop();
if (child->typeEntry()->isTemplateArgument())
return true;
- children << child->m_children.toVector();
+ children << child->m_children;
}
return false;
@@ -389,7 +389,7 @@ bool AbstractMetaFunction::needsCallThrough() const
bool AbstractMetaFunction::needsSuppressUncheckedWarning() const
{
for (int i = -1; i <= arguments().size(); ++i) {
- const QList<ReferenceCount> &referenceCounts = this->referenceCounts(implementingClass(), i);
+ const QVector<ReferenceCount> &referenceCounts = this->referenceCounts(implementingClass(), i);
for (const ReferenceCount &referenceCount : referenceCounts) {
if (referenceCount.action != ReferenceCount::Set)
return true;
@@ -600,9 +600,9 @@ int AbstractMetaFunction::actualMinimumArgumentCount() const
}
// Returns reference counts for argument at idx, or all arguments if idx == -2
-QList<ReferenceCount> AbstractMetaFunction::referenceCounts(const AbstractMetaClass *cls, int idx) const
+QVector<ReferenceCount> AbstractMetaFunction::referenceCounts(const AbstractMetaClass *cls, int idx) const
{
- QList<ReferenceCount> returned;
+ QVector<ReferenceCount> returned;
const FunctionModificationList &mods = this->modifications(cls);
for (const FunctionModification &mod : mods) {