Commit 765cdeb4 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Reserve elements

parent 478edcbd
......@@ -125,6 +125,7 @@ void SearchFullHashJob::parse(const QByteArray &replyStr)
QList<QByteArray> hashList;
QMap<QString, QVariant>::const_iterator urlMapIt = urlMap.cbegin();
const QMap<QString, QVariant>::const_iterator urlMapItEnd = urlMap.cend();
hashList.reserve(urlMap.count());
for (; urlMapIt != urlMapItEnd; ++urlMapIt) {
const QByteArray hashStr = urlMapIt.value().toByteArray();
hashList << hashStr;
......
Markdown is supported
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