Fix clang-tidy warnings

This commit is contained in:
Kostas Kyrimis 2022-11-30 17:44:37 +02:00
parent 3f3d6c52a3
commit 8af635c8d7

View File

@ -533,7 +533,7 @@ msgs::ReadResponses ShardRsm::HandleRead(msgs::GetPropertiesRequest &&req) {
std::vector<std::pair<PropertyId, Value>> result;
result.reserve(value.size());
for (auto &[id, val] : value) {
result.push_back({id, std::move(val)});
result.emplace_back(std::make_pair(id, std::move(val)));
}
return result;
};