Commit ccc6bd33 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Reserve size

parent 736b8cc5
......@@ -98,6 +98,7 @@ void DKIMDownloadKeyJob::resolvDnsDone()
// Handle the results.
const auto records = mDnsLookup->textRecords();
QList<QByteArray> textRecordResult;
textRecordResult.reserve(records.count());
for (const QDnsTextRecord &record : records) {
textRecordResult << record.values();
}
......
......@@ -70,6 +70,7 @@ void DMARCRecordJob::resolvDnsDone()
// Handle the results.
const auto records = mDnsLookup->textRecords();
QList<QByteArray> textRecordResult;
textRecordResult.reserve(records.count());
for (const QDnsTextRecord &record : records) {
textRecordResult << record.values();
}
......
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