Commit d2ddf441 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Increase the capacity of the correct vector

parent 62ef6f94
...@@ -969,7 +969,7 @@ void KeyCache::insert(const std::vector<Key> &keys) ...@@ -969,7 +969,7 @@ void KeyCache::insert(const std::vector<Key> &keys)
// 6b. insert into subkey ID index: // 6b. insert into subkey ID index:
std::vector<Subkey> by_subkeyid; std::vector<Subkey> by_subkeyid;
by_email.reserve(subkeys.size() + d->by.subkeyid.size()); by_subkeyid.reserve(subkeys.size() + d->by.subkeyid.size());
std::merge(subkeys.begin(), subkeys.end(), std::merge(subkeys.begin(), subkeys.end(),
d->by.subkeyid.begin(), d->by.subkeyid.end(), d->by.subkeyid.begin(), d->by.subkeyid.end(),
std::back_inserter(by_subkeyid), std::back_inserter(by_subkeyid),
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