Improve naming

This commit is contained in:
Robert Schulze 2023-05-08 12:36:28 +00:00
parent 8b77b706c4
commit d2dc5e9fc8
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -45,14 +45,14 @@ Key getPartialKey(std::string_view key, const PartialKeyPositions & partial_key_
bool allPartialKeysAreUnique(const std::vector<Key> & data, const PartialKeyPositions & partial_key_positions)
{
std::unordered_set<Key> partial_keys;
partial_keys.reserve(data.size());
std::unordered_set<Key> unique_partial_keys;
unique_partial_keys.reserve(data.size());
Key partial_key;
for (const auto & key : data)
{
getPartialKey(key, partial_key_positions, partial_key);
if (!partial_keys.insert(partial_key).second)
if (!unique_partial_keys.insert(partial_key).second)
return false;
}