Commit 2b79366e authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Snap: Reserve vector size when we know the size

parent 6b35e8e0
......@@ -97,6 +97,7 @@ ResultsStream* SnapBackend::populate(T* job)
QVector<AbstractResource*> ret;
QSet<SnapResource*> resources;
for (int i=0, c=job->snapCount(); i<c; ++i) {
QSharedPointer<QSnapdSnap> snap(job->snap(i));
const auto snapname = snap->name();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment