aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlmetatype.cpp
diff options
context:
space:
mode:
authorSérgio Martins <sergio.martins@kdab.com>2015-06-06 16:57:33 +0100
committerSérgio Martins <sergio.martins@kdab.com>2015-06-08 11:35:42 +0000
commit52d91eeea4f49d36c18efd39e12f2634992cb63b (patch)
tree59cd35f687bcf5b4d02ce6ce24fc8362fa58a171 /src/qml/qml/qqmlmetatype.cpp
parent1790d374718308dc530b14eb004d1504baa2a5c6 (diff)
Add 28 QList::reserve() calls
Change-Id: Id4820ac458f48b10f2bf457144767efdef9e2c07 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/qml/qml/qqmlmetatype.cpp')
-rw-r--r--src/qml/qml/qqmlmetatype.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlmetatype.cpp b/src/qml/qml/qqmlmetatype.cpp
index 2947a03a4a..249ce6942f 100644
--- a/src/qml/qml/qqmlmetatype.cpp
+++ b/src/qml/qml/qqmlmetatype.cpp
@@ -1820,6 +1820,7 @@ QList<QString> QQmlMetaType::qmlTypeNames()
QQmlMetaTypeData *data = metaTypeData();
QList<QString> names;
+ names.reserve(data->nameToType.count());
QQmlMetaTypeData::Names::ConstIterator it = data->nameToType.cbegin();
while (it != data->nameToType.cend()) {
names += (*it)->qmlTypeName();